mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-08-04 04:21:03 +00:00
target/riscv: Fix the range of pmpcfg of CSR funcion table
Backports commit 8ba26b0b2b00dd5849a6c0981e358dc7a7cc315d from qemu
This commit is contained in:
parent
08ce565d7c
commit
001d2e6a29
|
@ -1281,7 +1281,7 @@ static riscv_csr_operations csr_ops[CSR_TABLE_SIZE] = {
|
||||||
[CSR_MTINST] = { hmode, read_mtinst, write_mtinst },
|
[CSR_MTINST] = { hmode, read_mtinst, write_mtinst },
|
||||||
|
|
||||||
/* Physical Memory Protection */
|
/* Physical Memory Protection */
|
||||||
[CSR_PMPCFG0 ... CSR_PMPADDR9] = { pmp, read_pmpcfg, write_pmpcfg },
|
[CSR_PMPCFG0 ... CSR_PMPCFG3] = { pmp, read_pmpcfg, write_pmpcfg },
|
||||||
[CSR_PMPADDR0 ... CSR_PMPADDR15] = { pmp, read_pmpaddr, write_pmpaddr },
|
[CSR_PMPADDR0 ... CSR_PMPADDR15] = { pmp, read_pmpaddr, write_pmpaddr },
|
||||||
|
|
||||||
/* Performance Counters */
|
/* Performance Counters */
|
||||||
|
|
Loading…
Reference in a new issue