From e0cf6539e540178d46f1502a1b6dae77f49d1ea2 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 29 Sep 2018 08:19:59 +0100 Subject: [PATCH] move SV CSRs to user-read-write --- riscv/encoding.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/riscv/encoding.h b/riscv/encoding.h index d7bb800..4fd7b36 100644 --- a/riscv/encoding.h +++ b/riscv/encoding.h @@ -892,25 +892,25 @@ #define CSR_MHPMEVENT29 0x33d #define CSR_MHPMEVENT30 0x33e #define CSR_MHPMEVENT31 0x33f -#define CSR_SVREGCFG0 0xcc0 -#define CSR_SVREGCFG1 0xcc1 -#define CSR_SVREGCFG2 0xcc2 -#define CSR_SVREGCFG3 0xcc3 -#define CSR_SVREGCFG4 0xcc4 -#define CSR_SVREGCFG5 0xcc5 -#define CSR_SVREGCFG6 0xcc6 -#define CSR_SVREGCFG7 0xcc7 -#define CSR_SVPREDCFG0 0xcc8 -#define CSR_SVPREDCFG1 0xcc9 -#define CSR_SVPREDCFG2 0xcca -#define CSR_SVPREDCFG3 0xccb -#define CSR_SVPREDCFG4 0xccc -#define CSR_SVPREDCFG5 0xccd -#define CSR_SVPREDCFG6 0xcce -#define CSR_SVPREDCFG7 0xccf -#define CSR_SVVL 0xcf0 -#define CSR_SVREALVL 0xcf1 -#define CSR_SVMVL 0xcf2 +#define CSR_SVREGCFG0 0x4c0 +#define CSR_SVREGCFG1 0x4c1 +#define CSR_SVREGCFG2 0x4c2 +#define CSR_SVREGCFG3 0x4c3 +#define CSR_SVREGCFG4 0x4c4 +#define CSR_SVREGCFG5 0x4c5 +#define CSR_SVREGCFG6 0x4c6 +#define CSR_SVREGCFG7 0x4c7 +#define CSR_SVPREDCFG0 0x4c8 +#define CSR_SVPREDCFG1 0x4c9 +#define CSR_SVPREDCFG2 0x4ca +#define CSR_SVPREDCFG3 0x4cb +#define CSR_SVPREDCFG4 0x4cc +#define CSR_SVPREDCFG5 0x4cd +#define CSR_SVPREDCFG6 0x4ce +#define CSR_SVPREDCFG7 0x4cf +#define CSR_SVVL 0x4f0 +#define CSR_SVREALVL 0x4f1 +#define CSR_SVMVL 0x4f2 #define CSR_MVENDORID 0xf11 #define CSR_MARCHID 0xf12 #define CSR_MIMPID 0xf13 -- 2.30.2