[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 2/6] hw/riscv: Use misa_mxl instead of misa_mxl_max
|
From: |
Akihiko Odaki |
|
Subject: |
[PATCH v5 2/6] hw/riscv: Use misa_mxl instead of misa_mxl_max |
|
Date: |
Thu, 19 Oct 2023 19:10:24 +0900 |
The effective MXL value matters when booting.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
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 @@
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.42.0
- [PATCH v5 0/6] gdbstub and TCG plugin improvements, Akihiko Odaki, 2023/10/19
- [PATCH v5 1/6] gdbstub: Check if gdb_regs is NULL, Akihiko Odaki, 2023/10/19
- [PATCH v5 2/6] hw/riscv: Use misa_mxl instead of misa_mxl_max,
Akihiko Odaki <=
- [PATCH v5 3/6] target/riscv: Remove misa_mxl validation, Akihiko Odaki, 2023/10/19
- [PATCH v5 4/6] target/riscv: Move misa_mxl_max to class, Akihiko Odaki, 2023/10/19
- [PATCH v5 5/6] target/riscv: Validate misa_mxl_max only once, Akihiko Odaki, 2023/10/19
- [PATCH v5 6/6] plugins: Remove an extra parameter, Akihiko Odaki, 2023/10/19