From patchwork Tue Jan 16 10:47:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 763012 Delivered-To: patch@linaro.org Received: by 2002:a5d:5903:0:b0:337:62d3:c6d5 with SMTP id v3csp1550692wrd; Tue, 16 Jan 2024 02:48:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNoVx6Qd+DKSxGO3/TuTGnE0h84JWGdZ1adGpbr9Poi7RIBxaGLLt063d2H6W7ufPj53B7 X-Received: by 2002:a05:620a:394c:b0:783:6902:13c5 with SMTP id qs12-20020a05620a394c00b00783690213c5mr1131839qkn.96.1705402126304; Tue, 16 Jan 2024 02:48:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705402126; cv=none; d=google.com; s=arc-20160816; b=SYSNH8RSMiNL7n/0JuogUukrO6g+EZXxGHsTwbo7ha/9uo4gfu66UBzbYwlnQX9WiE Vo07U7hxVLFcd1eOZwCQLFraevxdVJ764cMgd2zCQa/Fkgn8y/BcX3lKiJeDWS2X8NQL gzLl60vCPTWtHeQueAGDNexMXnTjqmNNHi2k6qoZi2aYlsY8JLKCE/1aCihUuK7HKJPu YcIUcD95ugGdtwneEk7DVMcAngt83F3Jr/KU/yOGsom9BhSuAb73Ry46W0EOmgf1i3wd XKOc3XfgD/LQE652KPK+q+9jMV6/goAdjYUr4rewdD954n3t0rhJLD4AcAkaUiNL/aB9 4+gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=G/4qvFydeTk/PTjvN3m6e5JXTCJ82jFvWrg8a2aPdvk=; fh=9jJHrC5PrJaZEpYolodfKVbyWk7Nrvl/dH0bi7QOqKg=; b=h02IlzGmgFjrz3h+pmcr77bPy59h/9CquNXqyofwsrn5yg8jpBdpmbjRwWxsuhtKG+ /0XbrhbFq0F+UzP/TkOhagBgESUdCCEVhAeXD/WMac7+GKgKOZ9BpoIIIU0cu06Ro4rR kxA7+udMrugaU6tSsoR7DBymT8l+JmVrcVeX3ajG3fMZEihMfpX6RUuh1y2XonunRd24 zH5A7OzZRIliOfTbxPtIPx6x58uvfvl9fmDAC35wT7LgHnCB8pfbeA53V+8iUa1hVJNP XOtSSEnKvpRHK3TVpeTJp5GOiwGkdS5rIMWB2msVBqnOPc+9Ujsztz1DeQJoHMnzWlMz Vr4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gYduNJ+G; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h18-20020a05620a21d200b0078351e1950esi5834101qka.420.2024.01.16.02.48.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Jan 2024 02:48:46 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gYduNJ+G; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPgzR-0002HT-Ra; Tue, 16 Jan 2024 05:48:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPgzO-0002H3-MP for qemu-devel@nongnu.org; Tue, 16 Jan 2024 05:48:14 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rPgzM-00077w-Ot for qemu-devel@nongnu.org; Tue, 16 Jan 2024 05:48:14 -0500 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40e69b31365so31348785e9.0 for ; Tue, 16 Jan 2024 02:48:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705402090; x=1706006890; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=G/4qvFydeTk/PTjvN3m6e5JXTCJ82jFvWrg8a2aPdvk=; b=gYduNJ+GoH2ojxtkIaed/zMNDw+oTBJvokN7UVyr50B2Y5xri7vfDlnnVBvdJR9JeT XSuo5+kP1Roo/4fEEVFivgD2LysniRXuSlBEVKunMTish+6PHSQ2LXlQh/RaA1SSMiym deV+KTxfMALQ0HRBbakhoYsm/bW/WmY8FLU1ZyN/GAJoFNrnXj8IFk5BYPhauguVX3m2 ypkHVkDHpZVFnJqKuXD36Hre+TA8PDjbrOO563zqKa2GkMdEYDRrLVRfdSJfdVbv34X0 aDKiJuGlrRCl7jdWWNWyWEU5ec5ZHYG2dp9eZkFg7I8paUumi3c+11aihbAdP9tLob8f J8xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705402090; x=1706006890; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G/4qvFydeTk/PTjvN3m6e5JXTCJ82jFvWrg8a2aPdvk=; b=b1ivg/maDbF8KmP/BM7Ttaz33ZZD9EmmAjSjQOLznC5KVif9qM6RNdy9ENGyFBkeJ2 hqNlmuB2HO0QVF2K52e2xhLsMxIhutbxDdHI+GD69MwxeFq42D/IX073bpjFKkUpl3WR IsskbiuqCFzvIwWu1uvunJ/HQO9V4vhbteetYNu6YRtDfiDSJjPiTJf/ika0e/mT8J7Y SI43+fQ3yJWRQIGTRnVFq0DRTsngOqAePmciMXCjOqy9zWM5eUz6enrvk6mL+MKCrBrF gXbEOgl5zaMh0JXRzjXeX3y9M03IlV7aPWVXek2bMWMFsMCPDIhlWelkhR9Jl14SPLl+ MfvA== X-Gm-Message-State: AOJu0YwHFfZwYafhUzL/tojgdQUrqLiX1Sr13nBAJQteW09HlWQswc2+ KSOjoZn4ME6gRUIGU8JHHOL/CD1mb5ETGTln6whyS3QI/C8= X-Received: by 2002:a05:600c:138f:b0:40e:44b5:511e with SMTP id u15-20020a05600c138f00b0040e44b5511emr3513410wmf.99.1705402090436; Tue, 16 Jan 2024 02:48:10 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id ay12-20020a05600c1e0c00b0040d802a7619sm23143545wmb.38.2024.01.16.02.48.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 02:48:09 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 5BB9C5F8CE; Tue, 16 Jan 2024 10:48:09 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Akihiko Odaki , =?utf-8?q?Alex_Benn=C3=A9e?= , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , qemu-riscv@nongnu.org (open list:RISC-V TCG CPUs) Subject: [PULL 01/22] hw/riscv: Use misa_mxl instead of misa_mxl_max Date: Tue, 16 Jan 2024 10:47:48 +0000 Message-Id: <20240116104809.250076-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240116104809.250076-1-alex.bennee@linaro.org> References: <20240116104809.250076-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Akihiko Odaki The effective MXL value matters when booting. Signed-off-by: Akihiko Odaki Message-Id: <20240103173349.398526-23-alex.bennee@linaro.org> Message-Id: <20231213-riscv-v7-1-a760156a337f@daynix.com> Signed-off-by: Alex Bennée diff --git a/hw/riscv/boot.c b/hw/riscv/boot.c index 0ffca05189f..bc67c0bd189 100644 --- a/hw/riscv/boot.c +++ b/hw/riscv/boot.c @@ -36,7 +36,7 @@ bool riscv_is_32bit(RISCVHartArrayState *harts) { - return harts->harts[0].env.misa_mxl_max == MXL_RV32; + return harts->harts[0].env.misa_mxl == MXL_RV32; } /*