From nobody Wed Nov 27 14:40:39 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1698645001; cv=none; d=zohomail.com; s=zohoarc; b=JFEwmUYhp9LQv/ocjddb5h+XMJRa0xeoiK32OpwJNTQsu3la2ZXXVasGW0v6qWSZqZyil0RqhTJDB1TNE3KrraTAG49gODFX42wlF8hF8rmbSfpSH+gSWYlLdufE9ktkh1kN1CVSY4Hr/xrXIQBjP8DcMCc1pjF2KXtD9gU39R0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1698645001; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:Message-Id:Reply-To:To; bh=S0hRCeRwfxj5e4fBp30kQZNEm7sQqD61LbWIJSIn+lc=; b=R3NkAorEMnAwTuj0PN8QCoC0my4XBA+rFEJWYRA3cnRdhHAWUndJWMEp0rihW7DyW0LMfJf/wLuS18PUx7INzBqJ2KJ39pnBSY/h6ogbbJ6/krkLagvBnU1XtF+GjLTGiRy63th9B4oikNRdEts49VggN9VO+W3jqprK7Cx73wg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1698645001536684.5026792785536; Sun, 29 Oct 2023 22:50:01 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxL98-0002cj-Kf; Mon, 30 Oct 2023 01:49:06 -0400 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 1qxL8x-0002ag-Mp for qemu-devel@nongnu.org; Mon, 30 Oct 2023 01:48:56 -0400 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxL8w-0006wE-8S for qemu-devel@nongnu.org; Mon, 30 Oct 2023 01:48:55 -0400 Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-280351c32afso1054219a91.1 for ; Sun, 29 Oct 2023 22:48:53 -0700 (PDT) Received: from localhost ([2400:4050:a840:1e00:78d2:b862:10a7:d486]) by smtp.gmail.com with UTF8SMTPSA id ga5-20020a17090b038500b002801f183787sm3498464pjb.27.2023.10.29.22.48.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Oct 2023 22:48:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1698644932; x=1699249732; 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=S0hRCeRwfxj5e4fBp30kQZNEm7sQqD61LbWIJSIn+lc=; b=hdNfGkjtQJ4t7McWaFwA646QENZfcqdzsTUy9zG3Bf/1l/PGSNcz+gAZoGqPpB9ngA JksYH9sYKfkja+4YEj5+BTWsjk4eIR17O7qhG4vP4n1FT8cYaH1Uo5a7+0ODxi6F5KuU iqO2OcZfUmaeHb73Jh15I+46naIQkblYq1eN9bPN+R7Qa7vxsk3nIqmImWoJInAplbFE oxFzvMA8079SvilXl0c67RL1k2KBYaSvTnOeQLe27l6WwY1bQA2yAbZkJj+wrkecDS5V t+fwZQy+BJgJBehZAlPtUSFsxpJsZKZXxhCtFRmsXP3gC7jP9GW0KqXB7AYM/9uJyMkO ivxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698644932; x=1699249732; 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=S0hRCeRwfxj5e4fBp30kQZNEm7sQqD61LbWIJSIn+lc=; b=uJO/pKdALhND7SwQiVE8Gg8h8+dI5QmgzWy+pq0Y+Q2s6sJwMvrCpoqCxroKobQ+ar NvHC8qysxDrLfQg9Hqvx+9llu8BuLWy7gEogJSr5XL0t1IyH33nVMsS1YizG5kwHimEm 6EGPF2QNsPSdL0CwQ2EajR4V9WGbmWv66qozGc7AY4t9yDgq5nO5evEpqZ1FYkf9WAnz SfjkZHQchY2QndGYCv28Ox+DZdJOe++PvTwVeblWUmsCBnfpLyCGjKps3of2vTxhrrkc jCHkc936Ie/UAD23+Khq05BFK5C39+0paSwzoGC4thsBuHYmqH/4MMTsbjQId1XadjT7 yqIA== X-Gm-Message-State: AOJu0Ywo5UusY+yZYZH+pzFrG/tj8qVMhT5xwhVQQsGnvP+fWVBOrEed MEX7b7/lw1VWDwYMjvJyu4EMYA== X-Google-Smtp-Source: AGHT+IHNrs0CtMoCLei9eFcb7mVQvlxHgupfzhSpRtshG1fuMg+GE2VCsUKOwsHgv0sgWDUfmGdYxQ== X-Received: by 2002:a17:90a:7786:b0:27d:7ebe:2e8 with SMTP id v6-20020a17090a778600b0027d7ebe02e8mr8119912pjk.9.1698644932690; Sun, 29 Oct 2023 22:48:52 -0700 (PDT) From: Akihiko Odaki To: Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Mikhail Tyutin , Aleksandr Anenkov , qemu-devel@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Fabiano Rosas , Akihiko Odaki , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , qemu-riscv@nongnu.org Subject: [PATCH v6 1/5] hw/riscv: Use misa_mxl instead of misa_mxl_max Date: Mon, 30 Oct 2023 14:46:35 +0900 Message-ID: <20231030054834.39145-2-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231030054834.39145-1-akihiko.odaki@daynix.com> References: <20231030054834.39145-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::1033; envelope-from=akihiko.odaki@daynix.com; helo=mail-pj1-x1033.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1698645004600100009 Content-Type: text/plain; charset="utf-8" The effective MXL value matters when booting. Signed-off-by: Akihiko Odaki --- 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 52bf8e67de..dad3f6e7b1 100644 --- a/hw/riscv/boot.c +++ b/hw/riscv/boot.c @@ -36,7 +36,7 @@ =20 bool riscv_is_32bit(RISCVHartArrayState *harts) { - return harts->harts[0].env.misa_mxl_max =3D=3D MXL_RV32; + return harts->harts[0].env.misa_mxl =3D=3D MXL_RV32; } =20 /* --=20 2.42.0