On Fri, 15 Jan 2021 at 21:14, Richard Henderson <richard.hender...@linaro.org> wrote: > > Signed-off-by: Richard Henderson <richard.hender...@linaro.org> > --- > tcg/s390/tcg-target-con-str.h | 23 ++++++++++++++++++++ > tcg/s390/tcg-target.h | 1 + > tcg/s390/tcg-target.c.inc | 40 ----------------------------------- > 3 files changed, 24 insertions(+), 40 deletions(-) > create mode 100644 tcg/s390/tcg-target-con-str.h > > diff --git a/tcg/s390/tcg-target-con-str.h b/tcg/s390/tcg-target-con-str.h > new file mode 100644 > index 0000000000..f905b357c3 > --- /dev/null > +++ b/tcg/s390/tcg-target-con-str.h > @@ -0,0 +1,23 @@ > +/* SPDX-License-Identifier: MIT */ > +/* > + * Define S390 target-specific operand constraints. > + * Copyright (c) 2021 Linaro > + */ > + > +/* > + * Define constraint letters for register sets: > + * REGS(letter, register_mask) > + */ > +REGS('r', 0xffff) > +REGS('L', 0xffff & ~((1 << TCG_REG_R2) | (1 << TCG_REG_R3) | (1 << > TCG_REG_R4)))
I think this would be better using an ALL_GENERAL_REGS and an ALL_QLDST_REGS the way you do for the other targets, rather than hardcoding the 0xffff. Otherwise Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM