Skip to content

Commit

Permalink
Add comment about MBE handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Timmmm committed Dec 10, 2024
1 parent d2437a4 commit fd65e8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion model/riscv_sys_control.sail
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fd65e8b

Please sign in to comment.