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<liwei...@iscas.ac.cn>
Signed-off-by: Junqiang Wang<wangjunqi...@iscas.ac.cn>
---
target/riscv/cpu.c | 31 ++++++++++-----
target/riscv/insn_trans/trans_rvi.c.inc | 12 +++++-
target/riscv/insn_trans/trans_rvzce.c.inc | 4 +-
target/riscv/translate.c | 47 +++++++++++++++++++----
4 files changed, 74 insertions(+), 20 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~