Re: [PATCH v10 02/21] linux-user/riscv: set priv for qemu-user and defaults for *envcfg

2024-08-28 Thread Richard Henderson
On 8/28/24 10:16, Deepak Gupta wrote: This should be handled by a CPU reset, which is still called for linux user mode. It is the right place for setting priv to PRV_U? or you want me to place it elsewhere ? Sure for reset values of *envcfg, I can rely on `riscv_cpu_reset_hold` Doing this i

Re: [PATCH v10 02/21] linux-user/riscv: set priv for qemu-user and defaults for *envcfg

2024-08-27 Thread Deepak Gupta
On Wed, Aug 28, 2024 at 10:10:44AM +1000, Alistair Francis wrote: On Wed, Aug 28, 2024 at 9:20 AM Deepak Gupta wrote: set priv to be PRV_U for qemu-user on riscv. And set default value for *envcfg CSR. Signed-off-by: Deepak Gupta You can probably just squash this with the previous patch

Re: [PATCH v10 02/21] linux-user/riscv: set priv for qemu-user and defaults for *envcfg

2024-08-27 Thread Alistair Francis
On Wed, Aug 28, 2024 at 9:20 AM Deepak Gupta wrote: > > set priv to be PRV_U for qemu-user on riscv. And set default value for > *envcfg CSR. > > Signed-off-by: Deepak Gupta You can probably just squash this with the previous patch > --- > linux-user/riscv/cpu_loop.c | 4 > 1 file changed

[PATCH v10 02/21] linux-user/riscv: set priv for qemu-user and defaults for *envcfg

2024-08-27 Thread Deepak Gupta
set priv to be PRV_U for qemu-user on riscv. And set default value for *envcfg CSR. Signed-off-by: Deepak Gupta --- linux-user/riscv/cpu_loop.c | 4 1 file changed, 4 insertions(+) diff --git a/linux-user/riscv/cpu_loop.c b/linux-user/riscv/cpu_loop.c index 52c49c2e42..7a68e8717b 100644 --