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
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/