qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-5.0] tcg/i386: Fix %r12 guest_base initialization


From: Alex Bennée
Subject: Re: [PATCH for-5.0] tcg/i386: Fix %r12 guest_base initialization
Date: Mon, 06 Apr 2020 19:13:26 +0100
User-agent: mu4e 1.3.10; emacs 28.0.50

Richard Henderson <address@hidden> writes:

> When %gs cannot be used, we use register offset addressing.
> This path is almost never used, so it was clearly not tested.
>
> Signed-off-by: Richard Henderson <address@hidden>

Reviewed-by: Alex Bennée <address@hidden>
Tested-by: Alex Bennée <address@hidden>

> ---
>  tcg/i386/tcg-target.inc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tcg/i386/tcg-target.inc.c b/tcg/i386/tcg-target.inc.c
> index 7f61eeedd0..ec083bddcf 100644
> --- a/tcg/i386/tcg-target.inc.c
> +++ b/tcg/i386/tcg-target.inc.c
> @@ -3737,7 +3737,7 @@ static void tcg_target_qemu_prologue(TCGContext *s)
>          } else {
>              /* Choose R12 because, as a base, it requires a SIB byte. */
>              x86_guest_base_index = TCG_REG_R12;
> -            tcg_out_mov(s, TCG_TYPE_PTR, x86_guest_base_index, guest_base);
> +            tcg_out_movi(s, TCG_TYPE_PTR, x86_guest_base_index, guest_base);
>              tcg_regset_set_reg(s->reserved_regs, x86_guest_base_index);
>          }
>      }


-- 
Alex Bennée



reply via email to

[Prev in Thread] Current Thread [Next in Thread]