From: Luke Kenneth Casson Leighton Date: Thu, 15 Nov 2018 08:31:16 +0000 (+0000) Subject: use CSRRWI for CLR SV CSRs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d33b31d424056d16ba258af11a9920868935b7b;p=riscv-tests.git use CSRRWI for CLR SV CSRs --- 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.