From: Hou Weiying
Add a config option to enable experimental support for ePMP. This
is disabled by default and can be enabled with 'x-epmp=true'.
Signed-off-by: Hongzheng-Li
Signed-off-by: Hou Weiying
Signed-off-by: Myriad-Dreamin
---
target/riscv/cpu.c | 9 +
target/riscv
From: Hou Weiying
The ePMP can be found in:
https://docs.google.com/document/d/1Mh_aiHYxemL0umN3GTTw8vsbmzHZ_nxZXgjgOUzbvc8/edit#heading=h.9wsr1lnxtwe2
Signed-off-by: Hongzheng-Li
Signed-off-by: Hou Weiying
Signed-off-by: Myriad-Dreamin
---
target/riscv/pmp.c| 134
From: Hou Weiying
Currently using 0x390 and 0x391 for x-epmp (experimental). This may change in
the future spec.
Signed-off-by: Hongzheng-Li
Signed-off-by: Hou Weiying
Signed-off-by: Myriad-Dreamin
---
target/riscv/cpu_bits.h | 3 +++
target/riscv/gdbstub.c | 2 ++
2 files changed, 5
From: Hou Weiying
Signed-off-by: Hongzheng-Li
Signed-off-by: Hou Weiying
Signed-off-by: Myriad-Dreamin
---
target/riscv/csr.c | 18 ++
target/riscv/pmp.c | 40
2 files changed, 58 insertions(+)
diff --git a/target/riscv/csr.c b/target
From: Hou Weiying
The ePMP can be found in:
https://docs.google.com/document/d/1Mh_aiHYxemL0umN3GTTw8vsbmzHZ_nxZXgjgOUzbvc8/edit#heading=h.9wsr1lnxtwe2
Hou Weiying (4):
Define ePMP mseccfg
Implementation of enhanced PMP(ePMP) support
Add ePMP CSR accesses
Add a config option for ePMP.