Re: [PATCH v4 02/20] target/riscv: Sign extend pc for different XLEN

2021-11-14 Thread Alistair Francis
On Fri, Nov 12, 2021 at 1:56 AM LIU Zhiwei wrote: > > When pc is written, it is sign-extended to fill the widest supported XLEN. > > Signed-off-by: LIU Zhiwei > Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Alistair > --- > target/riscv/translate.c | 16 > 1

[PATCH v4 02/20] target/riscv: Sign extend pc for different XLEN

2021-11-11 Thread LIU Zhiwei
When pc is written, it is sign-extended to fill the widest supported XLEN. Signed-off-by: LIU Zhiwei Reviewed-by: Richard Henderson --- target/riscv/translate.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/target/riscv/translate.c