Re: [PATCH v2 5/5] target/riscv: Add pointer mask support for instruction fetch

2023-03-29 Thread liweiwei
On 2023/3/30 00:36, Richard Henderson wrote: On 3/28/23 20:23, Weiwei Li wrote: Transform the fetch address in cpu_get_tb_cpu_state() when pointer mask for instruction is enabled. Enable PC-relative translation when J is enabled. Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang ---   t

Re: [PATCH v2 5/5] target/riscv: Add pointer mask support for instruction fetch

2023-03-29 Thread Richard Henderson
On 3/28/23 20:23, Weiwei Li wrote: Transform the fetch address in cpu_get_tb_cpu_state() when pointer mask for instruction is enabled. Enable PC-relative translation when J is enabled. Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang --- target/riscv/cpu.c| 4 target/risc

[PATCH v2 5/5] target/riscv: Add pointer mask support for instruction fetch

2023-03-28 Thread Weiwei Li
Transform the fetch address in cpu_get_tb_cpu_state() when pointer mask for instruction is enabled. Enable PC-relative translation when J is enabled. Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang --- target/riscv/cpu.c| 4 target/riscv/cpu.h| 1 + target/riscv/cpu