[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
- [PATCH v2 00/22] tcg: backend constraints cleanup, Richard Henderson, 2021/01/15
- [PATCH v2 05/22] tcg/aarch64: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/01/15
- [PATCH v2 06/22] tcg/ppc: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/01/15
- [PATCH v2 04/22] tcg/arm: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/01/15
- [PATCH v2 07/22] tcg/tci: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/01/15
- [PATCH v2 02/22] tcg/i386: Move constraint type check to tcg_target_const_match, Richard Henderson, 2021/01/15