qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2 03/22] tcg/i386: Split out target constraints to tcg-targe


From: Peter Maydell
Subject: Re: [PATCH v2 03/22] tcg/i386: Split out target constraints to tcg-target-con-str.h
Date: Tue, 19 Jan 2021 18:07:21 +0000

On Tue, 19 Jan 2021 at 17:46, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> On 1/19/21 4:38 AM, Peter Maydell wrote:
> >> -    case 's':
> >> -        /* qemu_st8_i32 data constraint */
> >> -        ct->regs = 0xf;
> >> -#ifdef CONFIG_SOFTMMU
> >> -        tcg_regset_reset_reg(ct->regs, TCG_REG_L0);
> >> -        tcg_regset_reset_reg(ct->regs, TCG_REG_L1);
> >> -#endif
> >> -        break;
> >
> > But in the old code the 's' constraint is 0xf for both
> > x86-64 and i386.
>
> That's perhaps laziness, or simply the lack of names in the old code.  It
> logically should be BYTEL, because that's where byte stores go from.
>
> In the end it doesn't matter, because this constraint is *only* used by i386.
> The opcode INDEX_op_qemu_st8_i32 is not used by x86_64 at all.  See
> TCG_TARGET_HAS_qemu_st8_i32 in tcg-target.h.

OK. Can we keep actual changes in separate commits from
just-refactoring changes, please?

thanks
-- PMM



reply via email to

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