riscv/gdbstub: add V bit to priv reg
authorYanfeng Liu <yfliu2008@qq.com>
Sun, 15 Dec 2024 21:36:35 +0000 (05:36 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Sat, 18 Jan 2025 23:44:34 +0000 (09:44 +1000)
commite9952b3631b97f35d06052e0f3ec7ce812c9b539
tree84cf37069ddc45cd8602303ccec7ae78d271594b
parentd4ce7ef4b3b867e4d369f6024cf5f217f7bc2202
riscv/gdbstub: add V bit to priv reg

This adds virtualization mode (V bit) as bit(2) of register `priv`
per RiscV debug spec v1.0.0-rc4. Checked with gdb-multiarch v12.1.

Note that GDB may display `INVALID` tag for `priv` reg when V bit
is set, this doesn't affect actual access to the bit though.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <tencent_1993B55C24DE7979BF34B200F78287002907@qq.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/gdbstub.c