[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/24] tcg/tci: Split out target constraints to tcg-target-con-str
From: |
Richard Henderson |
Subject: |
[PULL 09/24] tcg/tci: Split out target constraints to tcg-target-con-str.h |
Date: |
Tue, 2 Feb 2021 16:15:35 -1000 |
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/tci/tcg-target-con-str.h | 11 +++++++++++
tcg/tci/tcg-target.h | 2 ++
tcg/tci/tcg-target.c.inc | 14 --------------
3 files changed, 13 insertions(+), 14 deletions(-)
create mode 100644 tcg/tci/tcg-target-con-str.h
diff --git a/tcg/tci/tcg-target-con-str.h b/tcg/tci/tcg-target-con-str.h
new file mode 100644
index 0000000000..87c0f19e9c
--- /dev/null
+++ b/tcg/tci/tcg-target-con-str.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Define TCI target-specific operand constraints.
+ * Copyright (c) 2021 Linaro
+ */
+
+/*
+ * Define constraint letters for register sets:
+ * REGS(letter, register_mask)
+ */
+REGS('r', MAKE_64BIT_MASK(0, TCG_TARGET_NB_REGS))
diff --git a/tcg/tci/tcg-target.h b/tcg/tci/tcg-target.h
index bb784e018e..ab832aecc3 100644
--- a/tcg/tci/tcg-target.h
+++ b/tcg/tci/tcg-target.h
@@ -207,4 +207,6 @@ static inline void tb_target_set_jmp_target(uintptr_t
tc_ptr, uintptr_t jmp_rx,
/* no need to flush icache explicitly */
}
+#define TCG_TARGET_CON_STR_H
+
#endif /* TCG_TARGET_H */
diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc
index b62e14d5ce..493bbf1e39 100644
--- a/tcg/tci/tcg-target.c.inc
+++ b/tcg/tci/tcg-target.c.inc
@@ -302,20 +302,6 @@ static bool patch_reloc(tcg_insn_unit *code_ptr, int type,
return true;
}
-/* Parse target specific constraints. */
-static const char *target_parse_constraint(TCGArgConstraint *ct,
- const char *ct_str, TCGType type)
-{
- switch (*ct_str++) {
- case 'r':
- ct->regs = BIT(TCG_TARGET_NB_REGS) - 1;
- break;
- default:
- return NULL;
- }
- return ct_str;
-}
-
#if defined(CONFIG_DEBUG_TCG_INTERPRETER)
/* Show current bytecode. Used by tcg interpreter. */
void tci_disas(uint8_t opc)
--
2.25.1
- [PULL 03/24] tcg/i386: Move constraint type check to tcg_target_const_match, (continued)
- [PULL 03/24] tcg/i386: Move constraint type check to tcg_target_const_match, Richard Henderson, 2021/02/02
- [PULL 02/24] tcg/tci: Remove TCG_TARGET_HAS_* ifdefs, Richard Henderson, 2021/02/02
- [PULL 04/24] tcg/i386: Tidy register constraint definitions, Richard Henderson, 2021/02/02
- [PULL 05/24] tcg/i386: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/02/02
- [PULL 07/24] tcg/aarch64: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/02/02
- [PULL 06/24] tcg/arm: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/02/02
- [PULL 10/24] tcg/mips: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/02/02
- [PULL 11/24] tcg/riscv: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/02/02
- [PULL 08/24] tcg/ppc: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/02/02
- [PULL 12/24] tcg/s390: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/02/02
- [PULL 09/24] tcg/tci: Split out target constraints to tcg-target-con-str.h,
Richard Henderson <=
- [PULL 15/24] tcg/i386: Split out constraint sets to tcg-target-con-set.h, Richard Henderson, 2021/02/02
- [PULL 13/24] tcg/sparc: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/02/02
- [PULL 18/24] tcg/mips: Split out constraint sets to tcg-target-con-set.h, Richard Henderson, 2021/02/02
- [PULL 16/24] tcg/aarch64: Split out constraint sets to tcg-target-con-set.h, Richard Henderson, 2021/02/02
- [PULL 19/24] tcg/ppc: Split out constraint sets to tcg-target-con-set.h, Richard Henderson, 2021/02/02
- [PULL 14/24] tcg: Remove TCG_TARGET_CON_STR_H, Richard Henderson, 2021/02/02
- [PULL 17/24] tcg/arm: Split out constraint sets to tcg-target-con-set.h, Richard Henderson, 2021/02/02
- [PULL 20/24] tcg/riscv: Split out constraint sets to tcg-target-con-set.h, Richard Henderson, 2021/02/02
- [PULL 21/24] tcg/s390: Split out constraint sets to tcg-target-con-set.h, Richard Henderson, 2021/02/02
- [PULL 22/24] tcg/sparc: Split out constraint sets to tcg-target-con-set.h, Richard Henderson, 2021/02/02