From: Yunsup Lee Date: Sat, 1 Apr 2017 02:14:19 +0000 (-0700) Subject: update encoding.h to get PMP updates X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2e8eb28cca2a5f49cea9f37774058718f795fdd;p=riscv-isa-sim.git update encoding.h to get PMP updates --- diff --git a/riscv/encoding.h b/riscv/encoding.h index b07d976..55f8461 100644 --- a/riscv/encoding.h +++ b/riscv/encoding.h @@ -127,13 +127,14 @@ #define PMP_R 0x01 #define PMP_W 0x02 #define PMP_X 0x04 -#define PMP_M 0x08 -#define PMP_NAPOT 0x10 -#define PMP_TOR 0x20 -#define PMP_EN 0x40 -#define PMP_LOCK 0x80 +#define PMP_A 0x18 +#define PMP_L 0x80 #define PMP_SHIFT 2 +#define PMP_TOR 0x08 +#define PMP_NA4 0x10 +#define PMP_NAPOT 0x18 + #define IRQ_S_SOFT 1 #define IRQ_H_SOFT 2 #define IRQ_M_SOFT 3