X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=isa%2Frv64si%2Fwfi.S;h=6b1e81899e8ea5841bb13345d47c1c18f23d313e;hb=c9cafde3d3b8075031c0786a589a05ad54732a5d;hp=4575f5984fd012c5185afe95067b77babfff4d1f;hpb=4d1491df727e9aeb5fdfeac25c22eaf24cafb908;p=riscv-tests.git diff --git a/isa/rv64si/wfi.S b/isa/rv64si/wfi.S index 4575f59..6b1e818 100644 --- a/isa/rv64si/wfi.S +++ b/isa/rv64si/wfi.S @@ -15,7 +15,6 @@ RVTEST_CODE_BEGIN #ifdef __MACHINE_MODE #define sstatus mstatus - #define sie mie #define sip mip #undef MIP_SSIP #define MIP_SSIP MIP_MSIP @@ -23,9 +22,8 @@ RVTEST_CODE_BEGIN #define SSTATUS_SIE MSTATUS_MIE #endif - # Make sure wfi doesn't stall if an interrupt is pending + # Make sure wfi doesn't stall if an interrupt is pending, even if masked csrc sstatus, SSTATUS_SIE - csrs sie, MIP_SSIP csrs sip, MIP_SSIP wfi