fix bitfield structure

This commit is contained in:
Stanislaw Kaushanski 2021-03-10 12:40:06 +01:00
parent be49b8b545
commit b7c0fb2b1c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}