CLR SV CSRs now clears by popping, TODO make 1 instr
[riscv-tests.git] / isa / macros / simplev / sv_test_macros.h
index 543f0c3b9c99935a1d54aa38be63b9a4dd043f84..e5ab75305d39901a7e10295438a203131c132eb3 100644 (file)
@@ -56,7 +56,7 @@
         csrrw  x0, 0x4c8, x1
 
 // clears the 2 CSRs set above
-#define CLR_SV_CSRS( ) csrrw   x0, 0x4c0, 0
+#define CLR_SV_CSRS( ) csrrw   x0, 0x4c0, 0; csrrw   x0, 0x4c0, 0; csrrw   x0, 0x4c0, 0;
 #define CLR_SV_PRED_CSRS( ) csrrw   x0, 0x4c8, 0
 
 // set maximum vector length.