From f2e8eb28cca2a5f49cea9f37774058718f795fdd Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Fri, 31 Mar 2017 19:14:19 -0700 Subject: [PATCH] update encoding.h to get PMP updates --- riscv/encoding.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 -- 2.30.2