We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f7d08a commit db2425dCopy full SHA for db2425d
src/iss/mem/clic.h
@@ -227,7 +227,7 @@ template <typename WORD_TYPE> struct clic : public memory_elem {
227
if(addr == arch::mcause) { // mcause access
228
hart_if.state.mstatus.MPIE = (val >> 27) & 1;
229
clic_mprev_lvl = ((val >> 16) & 0xff) | 0xff >> cfg.clic_int_ctl_bits;
230
- hart_if.state.mstatus.MPP = (val << 28) & 0x3;
+ hart_if.state.mstatus.MPP = (val >> 28) & 0x3;
231
} else if(addr == arch::ucause) {
232
hart_if.state.mstatus.UPIE = (val >> 27) & 1;
233
clic_uprev_lvl = ((val >> 16) & 0xff) | 0xff >> cfg.clic_int_ctl_bits;
0 commit comments