[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 10/22] tcg/s390: Split out target constraints to tcg-targe
From: |
Peter Maydell |
Subject: |
Re: [PATCH v2 10/22] tcg/s390: Split out target constraints to tcg-target-con-str.h |
Date: |
Tue, 19 Jan 2021 14:55:28 +0000 |
On Fri, 15 Jan 2021 at 21:14, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Signed-off-by: Richard Henderson <richard.henderson@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.maydell@linaro.org>
thanks
-- PMM
- Re: [PATCH v2 09/22] tcg/riscv: Split out target constraints to tcg-target-con-str.h, (continued)
- [PATCH v2 11/22] tcg/sparc: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/01/15
- [PATCH v2 08/22] tcg/mips: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/01/15
- [PATCH v2 10/22] tcg/s390: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/01/15
- Re: [PATCH v2 10/22] tcg/s390: Split out target constraints to tcg-target-con-str.h,
Peter Maydell <=
- [PATCH v2 12/22] tcg: Remove TCG_TARGET_CON_STR_H, Richard Henderson, 2021/01/15
- [PATCH v2 13/22] tcg/i386: Split out constraint sets to tcg-target-con-set.h, Richard Henderson, 2021/01/15
- [PATCH v2 14/22] tcg/aarch64: Split out constraint sets to tcg-target-con-set.h, Richard Henderson, 2021/01/15
- [PATCH v2 15/22] tcg/arm: Split out constraint sets to tcg-target-con-set.h, Richard Henderson, 2021/01/15