Skip to content
Snippets Groups Projects
Unverified Commit ab9056ff authored by Jonathan Behrens's avatar Jonathan Behrens Committed by Palmer Dabbelt
Browse files

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: default avatarJonathan Behrens <jonathan@fintelia.io>
Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Tested-by: default avatarBin Meng <bmeng.cn@gmail.com>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent a555ad13
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment