From: Hou Weiying <[email protected]> Use address 0x390 and 0x391 for the ePMP CSRs.
Signed-off-by: Hongzheng-Li <[email protected]> Signed-off-by: Hou Weiying <[email protected]> Signed-off-by: Myriad-Dreamin <[email protected]> Reviewed-by: Alistair Francis <[email protected]> Message-Id: <sg2pr02mb2634d85e5df0c2bb540ae1bb93...@sg2pr02mb2634.apcprd02.prod.outlook.com> [ Changes by AF: - Tidy up commit message ] Signed-off-by: Alistair Francis <[email protected]> Reviewed-by: Bin Meng <[email protected]> --- target/riscv/cpu_bits.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/riscv/cpu_bits.h b/target/riscv/cpu_bits.h index 8549d77b4f..24d89939a0 100644 --- a/target/riscv/cpu_bits.h +++ b/target/riscv/cpu_bits.h @@ -220,6 +220,9 @@ #define CSR_MTINST 0x34a #define CSR_MTVAL2 0x34b +/* Enhanced Physical Memory Protection (ePMP) */ +#define CSR_MSECCFG 0x390 +#define CSR_MSECCFGH 0x391 /* Physical Memory Protection */ #define CSR_PMPCFG0 0x3a0 #define CSR_PMPCFG1 0x3a1 -- 2.31.1
