Re: [PATCH v1 3/7] target/riscv: Read pte and satp based on SXL in PTW

2024-10-10 Thread Alistair Francis
On Mon, Oct 7, 2024 at 1:36 PM LIU Zhiwei wrote: > > From: TANG Tiancheng > > Satp and PTE are always SXLEN-bit. when SXLEN is 32, > read PTE as 4 bytes, and treat satp as SATP32. > > Signed-off-by: TANG Tiancheng Reviewed-by: Alistair Francis Alistair > --- > target/riscv/cpu_helper.c | 4

[PATCH v1 3/7] target/riscv: Read pte and satp based on SXL in PTW

2024-10-06 Thread LIU Zhiwei
From: TANG Tiancheng Satp and PTE are always SXLEN-bit. when SXLEN is 32, read PTE as 4 bytes, and treat satp as SATP32. Signed-off-by: TANG Tiancheng --- target/riscv/cpu_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/riscv/cpu_helper.c b/target/riscv/