target/riscv: Fix the range of pmpcfg of CSR funcion table

Backports commit 8ba26b0b2b00dd5849a6c0981e358dc7a7cc315d from qemu
This commit is contained in:
Zong Li 2021-02-25 23:35:01 -05:00 committed by Lioncash
parent 08ce565d7c
commit 001d2e6a29

View file

@ -1281,7 +1281,7 @@ static riscv_csr_operations csr_ops[CSR_TABLE_SIZE] = {
[CSR_MTINST] = { hmode, read_mtinst, write_mtinst },
/* 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 },
/* Performance Counters */