diff options
| author | Bin Meng | 2019-09-20 16:47:14 +0200 |
|---|---|---|
| committer | Palmer Dabbelt | 2019-10-28 15:46:53 +0100 |
| commit | e6e03dcffd3583f6fd8148108e65d514b8382c2c (patch) | |
| tree | 22ea70c5fb7ee07ce8f3afd6944346fcffd45725 /include/exec/user | |
| parent | Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (diff) | |
| download | qemu-e6e03dcffd3583f6fd8148108e65d514b8382c2c.tar.gz qemu-e6e03dcffd3583f6fd8148108e65d514b8382c2c.tar.xz qemu-e6e03dcffd3583f6fd8148108e65d514b8382c2c.zip | |
riscv: Skip checking CSR privilege level in debugger mode
If we are in debugger mode, skip the CSR privilege level checking
so that we can read/write all CSRs. Otherwise we get:
(gdb) p/x $mtvec
Could not fetch register "mtvec"; remote failure reply 'E14'
when the hart is currently in S-mode.
Reported-by: Zong Li <zong.li@sifive.com>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions
