From fd65e8b9d4d2d27d5dd16cf83f8569dbee707a24 Mon Sep 17 00:00:00 2001 From: Tim Hutt Date: Tue, 10 Dec 2024 10:34:55 +0000 Subject: [PATCH] Add comment about MBE handling. --- model/riscv_sys_control.sail | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/model/riscv_sys_control.sail b/model/riscv_sys_control.sail index 4eeff04fd..f8b927f76 100644 --- a/model/riscv_sys_control.sail +++ b/model/riscv_sys_control.sail @@ -377,7 +377,10 @@ function reset_sys() -> unit = { // "If little-endian memory accesses are supported, the mstatus/mstatush field // MBE is reset to 0." - // The model doesn't support little-endian (see legalize_mstatus()). + // TODO: The handling of mstatush is a bit awkward currently, but the model + // currently only supports little endian so MBE is always 0. + // See https://github.com/riscv/sail-riscv/issues/639 + // mstatus[MBE] = 0b0; // "The misa register is reset to enable the maximal set of supported extensions" reset_misa();