summary refs log tree commit diff stats
path: root/util/async.c
diff options
context:
space:
mode:
authorJonathan Behrens <jonathan@fintelia.io>2019-10-14 11:45:28 -0400
committerPalmer Dabbelt <palmer@sifive.com>2019-10-28 07:47:29 -0700
commitab9056ff9bdb3f95db6e7a666d10522d289f14ec (patch)
treea8ef14c78bdd972ed3dcc4ba51e29233cfc48afb /util/async.c
parenta555ad1399c9eda9da0c5f8e40acd94d87957054 (diff)
downloadfocaccia-qemu-ab9056ff9bdb3f95db6e7a666d10522d289f14ec.tar.gz
focaccia-qemu-ab9056ff9bdb3f95db6e7a666d10522d289f14ec.zip
target/riscv: Expose "priv" register for GDB for reads
This patch enables a debugger to read the current privilege level via a virtual
"priv" register. When compiled with CONFIG_USER_ONLY the register is still
visible but always reports the value zero.

Signed-off-by: Jonathan Behrens <jonathan@fintelia.io>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'util/async.c')
0 files changed, 0 insertions, 0 deletions