From f29fd720d1ec58319ee2acb33f4b2d53f5a96807 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 13 Nov 2018 13:32:06 +0000 Subject: [PATCH] CLR SV CSRs now clears by popping, TODO make 1 instr --- isa/macros/simplev/sv_test_macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.30.2