Update WFI test for priv v1.9
[riscv-tests.git] / isa / rv64si / wfi.S
index 8e569097208561ebcd3e8a54309c4acdae6d67ae..03020342bcb5ad7979be96173dac3b048f0054f9 100644 (file)
 RVTEST_RV64S
 RVTEST_CODE_BEGIN
 
-  # Make sure wfi doesn't stall if an interrupt is pending, even if masked
+  # Make sure wfi doesn't halt the hart, even if interrupts are disabled
   csrc sstatus, SSTATUS_SIE
-  csrs sip, MIP_SSIP
+  csrs sie, SIP_SSIP
+  csrs sip, SIP_SSIP
   wfi
 
   RVTEST_PASS