Re: [PATCH 24/30] tcg/loongarch: Implement tcg_target_qemu_prologue

2021-09-20 Thread Richard Henderson
On 9/20/21 1:04 AM, WANG Xuerui wrote: +#if !defined(CONFIG_SOFTMMU) +tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base); +tcg_regset_set_reg(s->reserved_regs, TCG_GUEST_BASE_REG); +#endif Should test for guest_base == 0. This is common for a 64-bit guest. Otherwise, Review

[PATCH 24/30] tcg/loongarch: Implement tcg_target_qemu_prologue

2021-09-20 Thread WANG Xuerui
Signed-off-by: WANG Xuerui --- tcg/loongarch/tcg-target.c.inc | 66 ++ 1 file changed, 66 insertions(+) diff --git a/tcg/loongarch/tcg-target.c.inc b/tcg/loongarch/tcg-target.c.inc index 0b6f16bde0..10df007087 100644 --- a/tcg/loongarch/tcg-target.c.inc +++ b/tcg/