fix bitfield structure
This commit is contained in:
parent
be49b8b545
commit
b7c0fb2b1c
@ -302,7 +302,7 @@ public:
|
||||
|
||||
void write_mstatus(T val) {
|
||||
auto mask = get_mask();
|
||||
auto new_val = (mstatus.st.value & ~mask) | (val & mask);
|
||||
auto new_val = (mstatus.backing.val & ~mask) | (val & mask);
|
||||
mstatus = new_val;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user