Re: [PATCH v2 6/7] target/riscv: Enable PC-relative translation

2023-05-25 Thread Alistair Francis
On Wed, May 24, 2023 at 12:12 AM Weiwei Li wrote: > > Add a base pc_save for PC-relative translation(CF_PCREL). > Diable the directly sync pc from tb by riscv_cpu_synchronize_from_tb. > Use gen_pc_plus_diff to get the pc-relative address. > Enable CF_PCREL in System mode. > > Signed-off-by: Weiwei

Re: [PATCH v2 6/7] target/riscv: Enable PC-relative translation

2023-05-23 Thread Richard Henderson
On 5/23/23 06:59, Weiwei Li wrote: Add a base pc_save for PC-relative translation(CF_PCREL). Diable the directly sync pc from tb by riscv_cpu_synchronize_from_tb. Use gen_pc_plus_diff to get the pc-relative address. Enable CF_PCREL in System mode. Signed-off-by: Weiwei Li Signed-off-by: Junqiang

[PATCH v2 6/7] target/riscv: Enable PC-relative translation

2023-05-23 Thread Weiwei Li
Add a base pc_save for PC-relative translation(CF_PCREL). Diable the directly sync pc from tb by riscv_cpu_synchronize_from_tb. Use gen_pc_plus_diff to get the pc-relative address. Enable CF_PCREL in System mode. Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang --- target/riscv/cpu.c