From 1d33b31d424056d16ba258af11a9920868935b7b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 15 Nov 2018 08:31:16 +0000 Subject: [PATCH] use CSRRWI for CLR SV CSRs --- 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 e5ab753..07c4e3d 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; csrrw x0, 0x4c0, 0; csrrw x0, 0x4c0, 0; +#define CLR_SV_CSRS( ) csrrwi x0, 0x4c0, 0xf; #define CLR_SV_PRED_CSRS( ) csrrw x0, 0x4c8, 0 // set maximum vector length. -- 2.30.2