diff options
| author | Jonathan Behrens | 2019-10-14 17:45:29 +0200 |
|---|---|---|
| committer | Palmer Dabbelt | 2019-10-28 15:47:29 +0100 |
| commit | 81d2929c41d32af138f3562f5a7b309f6eac7ca7 (patch) | |
| tree | 55d49ccf9aa5958f8b8402174c3e1ecf36db410c /include/exec | |
| parent | target/riscv: Expose "priv" register for GDB for reads (diff) | |
| download | qemu-81d2929c41d32af138f3562f5a7b309f6eac7ca7.tar.gz qemu-81d2929c41d32af138f3562f5a7b309f6eac7ca7.tar.xz qemu-81d2929c41d32af138f3562f5a7b309f6eac7ca7.zip | |
target/riscv: Make the priv register writable by GDB
Currently only PRV_U, PRV_S and PRV_M are supported, so this patch ensures that
the privilege mode is set to one of them. Once support for the H-extension is
added, this code will also need to properly update the virtualization status
when switching between VU/VS-modes and M-mode.
Signed-off-by: Jonathan Behrens <jonathan@fintelia.io>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-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')
0 files changed, 0 insertions, 0 deletions
