Make ma_addr test work for systems with misaligned ld/st
[riscv-tests.git] / isa / rv64mi / ipi.S
index a427b765664dc18171d66c37705808413146a112..71783107e250478b817b99b5a815a580f5a108c1 100644 (file)
@@ -14,7 +14,7 @@ RVTEST_RV64M
 RVTEST_CODE_BEGIN
 
   # enable interrupts
-  csrs mstatus, MSTATUS_IE
+  csrs mstatus, MSTATUS_MIE
   csrs mie, MIP_MSIP
 
   # get a unique core id
@@ -27,7 +27,7 @@ RVTEST_CODE_BEGIN
   bgeu a2, a3, 1b
   
   # send a self-IPI
-  csrwi mipi, 0
+  csrwi mipi, 1
   1: j 1b
 
 mtvec_handler: