projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32f8b0b
)
update encoding.h to get PMP updates
author
Yunsup Lee
<yunsup@sifive.com>
Sat, 1 Apr 2017 02:14:19 +0000
(19:14 -0700)
committer
Yunsup Lee
<yunsup@sifive.com>
Sat, 1 Apr 2017 02:15:41 +0000
(19:15 -0700)
riscv/encoding.h
patch
|
blob
|
history
diff --git
a/riscv/encoding.h
b/riscv/encoding.h
index b07d976556aaa4a237299de74d5652ac0a91ff7d..55f8461026fa9e122cf076adade3675bdbe25b6a 100644
(file)
--- 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