aboutsummaryrefslogtreecommitdiff
path: root/backends/hostmem.c
diff options
context:
space:
mode:
authorBin Meng <bmeng@tinylab.org>2023-02-28 18:40:26 +0800
committerPalmer Dabbelt <palmer@rivosinc.com>2023-03-01 16:40:18 -0800
commit04733fb0916f4b2b240da42342374b05d5dfc389 (patch)
tree9c31422459780e38e85db18314c53cdc1711c702 /backends/hostmem.c
parent94e297071bc0a5965cc32c497a886f2cf9d32710 (diff)
downloadqemu-04733fb0916f4b2b240da42342374b05d5dfc389.zip
qemu-04733fb0916f4b2b240da42342374b05d5dfc389.tar.gz
qemu-04733fb0916f4b2b240da42342374b05d5dfc389.tar.bz2
target/riscv: Avoid reporting odd-numbered pmpcfgX in the CSR XML for RV64
At present the odd-numbered PMP configuration registers for RV64 are reported in the CSR XML by QEMU gdbstub. However these registers do not exist on RV64 so trying to access them from gdb results in 'E14'. Move the pmpcfgX index check from the actual read/write routine to the PMP CSR predicate() routine, so that non-existent pmpcfgX won't be reported in the CSR XML for RV64. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn> Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com> Message-ID: <20230228104035.1879882-11-bmeng@tinylab.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'backends/hostmem.c')
0 files changed, 0 insertions, 0 deletions