From patchwork Wed Jan 3 17:33:28 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: 759634 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp6612167wrw; Wed, 3 Jan 2024 09:40:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDn8sJQbJ4KTPlIGc5vpJb6r6m4+OwXydSilO08Ps44xDhCLDfbKfHVASm4KsDSSA7Rgyf X-Received: by 2002:a5b:c44:0:b0:dbe:a490:abf3 with SMTP id d4-20020a5b0c44000000b00dbea490abf3mr790358ybr.90.1704303608225; Wed, 03 Jan 2024 09:40:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704303608; cv=none; d=google.com; s=arc-20160816; b=OrD4uQl6bWxHhIy+LN01/3iPZvPo5p6TD7ObhyGdglJDBo/KjOcZXJb2XLmS2xwTvC GU6fsBoV7QRAuwq0EovC83FGD29O6fdEWc30RSCG2eT7z5tZJ1Fy/uWGtQJQWXX3epa5 YyEi8P4WG6mDpkkBxMEo+50sffG/VOuvrokphvgH6ImZorbX+/iYo1QrMXfrRTnrXxVJ wiS35+BzpgKx65+9S58gXdlYEsIBUCOrORGzJ3MswG9jWVewiPCNENxz/68j4HJv5w1t MN0kCBkJw1fEBTV+M9pXa88NSK9Zr4viaGIl7NFNdzmwMv4y4tWZG+1hzZOSBoFgqZ4t F+jA== 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=UUTepCaXuSvQff7RpqKHmtGuMDeLUnEdp+0FVQ8ed3M=; fh=MptfaR+7adpcaME/63X0fm8Oaab8Ri8YJu2OQMap89k=; b=XL47vpCnSUoiUEuY7uJK9lsqbWN0begr/dDNkpjBRx2uxulZxfHbLqRXSEd+uYa0JG fIlXoc2efUqQ2Poo46sH+lTqipWNml8IyG53+ydZQYVJXtO/0T/OEaoAzjT0hNv9RWhI P32dA6mRkt2qf1jKOmrAmavzS1LSTWD1oo3M8bY0GvtOkIr3/xnpyKW9TgB3KFJZ3T8T tQZrCCJHl9m2ghdC5ff4KQqYGLO1XYs813r/7VgCbDTm1KKIytbX0kxWiecdhjKd6Kub j3PAO6s685BZyMzSU0hZnILXPg2AIr1mma+8n2OyB8oqiJ/SZNRbvzK0YZehn5ZSu2RU zJHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e0kOxQ9t; 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 bb39-20020a05622a1b2700b004283b90c8e4si1046262qtb.517.2024.01.03.09.40.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Jan 2024 09:40:08 -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=e0kOxQ9t; 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 1rL5Cz-00064V-34; Wed, 03 Jan 2024 12:39:13 -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 1rL5Cx-0005wX-Eb for qemu-devel@nongnu.org; Wed, 03 Jan 2024 12:39:11 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rL5Ct-0000c6-PU for qemu-devel@nongnu.org; Wed, 03 Jan 2024 12:39:11 -0500 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40d4a7f0c4dso100136865e9.1 for ; Wed, 03 Jan 2024 09:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704303546; x=1704908346; 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=UUTepCaXuSvQff7RpqKHmtGuMDeLUnEdp+0FVQ8ed3M=; b=e0kOxQ9tX/ZuiLXXv6bq2N7gALaUO6jr/J1yPe+niPz+NVDoTa+tUVSMHQFeRNWMXx /2/vzefj06458WvLokbA77IZ04qFKGf67As8yadr1gRnqQg5tM7gD4x/Z4uaeXKmgAdP WomrVVbL8Zy4m2gk2jAScojfvovsuF/GIiLAP1g2fDm418pkqVy4S/Zs1MjHqMHSaSiq Iqjf6Tml9MWo9aNAUwEIDQVCo+hlq7oelxZBIRbxO/Y+u17WEgwyI+wSj+wfP7N5PByB /1O3HyqXuNl6SZ9xJBxShOpGVpLaXZ7cYiU/yd9xnOL4Pq/AqGafk6ib6m69OdHErBD7 lS1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704303546; x=1704908346; 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=UUTepCaXuSvQff7RpqKHmtGuMDeLUnEdp+0FVQ8ed3M=; b=jHnHmoHgtl2baan1biz7OS1TE8hzmMGZgfum80N6NN3kGKoc8ppmtPLAKYY4nxL1jX TLLl2YEctLVuOoDiBiFjWscVtDHKIbh2i8Yqe5zDk9MqZiAYUiWXPJEoTfZnEkktHPqi CROyTMgn3aQsEi2F+92z51LnXSXuOlYj9BK+P+BuBYGLZgGUr6JGuKfU+w24OiEnC+7X c++ceMTTq1XlMomdQ1SSQ1+pA9gh/Ik9zye+HJeP6BzLDei4/qTx+DRBeARy4+Uq/jrs C1xCYyZvwSAP19r68pAR60VYBKcjK6n9U08pDp4NJMg1ALc/ZSxAbRALigOgBBZUrK4A k2iw== X-Gm-Message-State: AOJu0Yx68UODrc1boo92pZQR+fs5g1LxW65AJASW7Jl75KD0eX/PinoV nknKzGx1OXfgdP+bN7oQW9NvYNke3xgfDA== X-Received: by 2002:adf:e7c7:0:b0:336:619f:4647 with SMTP id e7-20020adfe7c7000000b00336619f4647mr8666036wrn.108.1704303546236; Wed, 03 Jan 2024 09:39:06 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id k4-20020a5d5244000000b003368c8d120fsm29995262wrc.7.2024.01.03.09.39.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 09:39:05 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 57CC25F954; Wed, 3 Jan 2024 17:33:51 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, Richard Henderson , Song Gao , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , David Hildenbrand , Aurelien Jarno , Yoshinori Sato , Yanan Wang , Bin Meng , Laurent Vivier , Michael Rolnik , Alexandre Iooss , David Woodhouse , Laurent Vivier , Paolo Bonzini , Brian Cain , Daniel Henrique Barboza , Beraldo Leal , Paul Durrant , Mahmoud Mandour , Thomas Huth , Liu Zhiwei , Cleber Rosa , kvm@vger.kernel.org, Peter Maydell , Wainer dos Santos Moschetta , =?utf-8?q?Alex_Benn?= =?utf-8?q?=C3=A9e?= , qemu-arm@nongnu.org, Weiwei Li , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , John Snow , Daniel Henrique Barboza , Nicholas Piggin , Palmer Dabbelt , Marcel Apfelbaum , Ilya Leoshkevich , =?utf-8?q?C=C3=A9dric_Le_Goater?= , "Edgar E. Iglesias" , Eduardo Habkost , Pierrick Bouvier , qemu-riscv@nongnu.org, Alistair Francis , Akihiko Odaki Subject: [PATCH v2 22/43] hw/riscv: Use misa_mxl instead of misa_mxl_max Date: Wed, 3 Jan 2024 17:33:28 +0000 Message-Id: <20240103173349.398526-23-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240103173349.398526-1-alex.bennee@linaro.org> References: <20240103173349.398526-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32c.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: <20231213-riscv-v7-1-a760156a337f@daynix.com> Signed-off-by: Alex Bennée --- hw/riscv/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } /*