Re: [PATCH 1/2] target/riscv: Expose "virt" register for GDB for reads

2023-03-09 Thread Alistair Francis
On Sun, Mar 5, 2023 at 7:43 PM Jim Shu wrote: > > This patch enables a debugger to read current virtualization mode via > virtual "virt" register. After it, we could get full current privilege > mode via both "priv" and "virt" register. > > Extend previous commit

Re: [PATCH 1/2] target/riscv: Expose "virt" register for GDB for reads

2023-03-06 Thread LIU Zhiwei
On 2023/3/5 17:42, Jim Shu wrote: This patch enables a debugger to read current virtualization mode via virtual "virt" register. After it, we could get full current privilege mode via both "priv" and "virt" register. Extend previous commit ab9056ff9bdb3f95db6e7a666d10522d289f14ec to support

[PATCH 1/2] target/riscv: Expose "virt" register for GDB for reads

2023-03-05 Thread Jim Shu
This patch enables a debugger to read current virtualization mode via virtual "virt" register. After it, we could get full current privilege mode via both "priv" and "virt" register. Extend previous commit ab9056ff9bdb3f95db6e7a666d10522d289f14ec to support H-extension. Signed-off-by: Jim Shu