[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 22/43] hw/riscv: Use misa_mxl instead of misa_mxl_max
From: |
Alex Bennée |
Subject: |
[PATCH v2 22/43] hw/riscv: Use misa_mxl instead of misa_mxl_max |
Date: |
Wed, 3 Jan 2024 17:33:28 +0000 |
From: Akihiko Odaki <akihiko.odaki@daynix.com>
The effective MXL value matters when booting.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20231213-riscv-v7-1-a760156a337f@daynix.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
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;
}
/*
--
2.39.2
- [PATCH v2 15/43] qtest: bump bios-table-test timeout to 9 minutes, (continued)
- [PATCH v2 15/43] qtest: bump bios-table-test timeout to 9 minutes, Alex Bennée, 2024/01/03
- [PATCH v2 13/43] qtest: bump qos-test timeout to 2 minutes, Alex Bennée, 2024/01/03
- [PATCH v2 16/43] tests/qtest: Bump the device-introspect-test timeout to 12 minutes, Alex Bennée, 2024/01/03
- [PATCH v2 27/43] target/ppc: Use GDBFeature for dynamic XML, Alex Bennée, 2024/01/03
- [PATCH v2 32/43] gdbstub: Simplify XML lookup, Alex Bennée, 2024/01/03
- [PATCH v2 31/43] gdbstub: Change gdb_get_reg_cb and gdb_set_reg_cb, Alex Bennée, 2024/01/03
- [PATCH v2 28/43] target/riscv: Use GDBFeature for dynamic XML, Alex Bennée, 2024/01/03
- [PATCH v2 23/43] target/riscv: Remove misa_mxl validation, Alex Bennée, 2024/01/03
- [PATCH v2 36/43] plugins: Use different helpers when reading registers, Alex Bennée, 2024/01/03
- [PATCH v2 22/43] hw/riscv: Use misa_mxl instead of misa_mxl_max,
Alex Bennée <=
- [PATCH v2 20/43] mtest2make: stop disabling meson test timeouts, Alex Bennée, 2024/01/03
- [PATCH v2 42/43] docs/devel: lift example and plugin API sections up, Alex Bennée, 2024/01/03
- [PATCH v2 39/43] contrib/plugins: fix imatch, Alex Bennée, 2024/01/03
- [PATCH v2 18/43] tests/unit: Bump test-crypto-block test timeout to 5 minutes, Alex Bennée, 2024/01/03
- [PATCH v2 19/43] tests/fp: Bump fp-test-mulAdd test timeout to 3 minutes, Alex Bennée, 2024/01/03
- [PATCH v2 30/43] gdbstub: Use GDBFeature for GDBRegisterState, Alex Bennée, 2024/01/03