From: Luke Kenneth Casson Leighton Date: Tue, 13 Nov 2018 13:32:06 +0000 (+0000) Subject: CLR SV CSRs now clears by popping, TODO make 1 instr X-Git-Url: https://git.libre-soc.org/?p=riscv-tests.git;a=commitdiff_plain;h=f29fd720d1ec58319ee2acb33f4b2d53f5a96807 CLR SV CSRs now clears by popping, TODO make 1 instr --- diff --git a/isa/macros/simplev/sv_test_macros.h b/isa/macros/simplev/sv_test_macros.h index 543f0c3..e5ab753 100644 --- a/isa/macros/simplev/sv_test_macros.h +++ b/isa/macros/simplev/sv_test_macros.h @@ -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.