|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH 09/10] tcg/riscv: Use tcg_use_softmmu |
Date: | Wed, 4 Oct 2023 08:42:18 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 |
On 3/10/23 19:43, Richard Henderson wrote:
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/riscv/tcg-target.c.inc | 189 +++++++++++++++++++------------------ 1 file changed, 97 insertions(+), 92 deletions(-)
@@ -2075,10 +2080,10 @@ static void tcg_target_qemu_prologue(TCGContext *s) TCG_REG_SP, SAVE_OFS + i * REG_SIZE); }-#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 + if (!tcg_use_softmmu && guest_base) {
Do you mind mentioning the 'guest_base' change here?
+ tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base); + tcg_regset_set_reg(s->reserved_regs, TCG_GUEST_BASE_REG); + }/* Call generated code */tcg_out_mov(s, TCG_TYPE_PTR, TCG_AREG0, tcg_target_call_iarg_regs[0]);
[Prev in Thread] | Current Thread | [Next in Thread] |