[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 07/27] tcg/aarch64: Reserve TCG_REG_TMP1, TCG_REG_TMP2
|
From: |
Richard Henderson |
|
Subject: |
[PULL 07/27] tcg/aarch64: Reserve TCG_REG_TMP1, TCG_REG_TMP2 |
|
Date: |
Tue, 30 May 2023 11:59:29 -0700 |
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/aarch64/tcg-target.c.inc | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/tcg/aarch64/tcg-target.c.inc b/tcg/aarch64/tcg-target.c.inc
index 8996e29ca9..5e7ac6fb76 100644
--- a/tcg/aarch64/tcg-target.c.inc
+++ b/tcg/aarch64/tcg-target.c.inc
@@ -40,11 +40,12 @@ static const int tcg_target_reg_alloc_order[] = {
TCG_REG_X8, TCG_REG_X9, TCG_REG_X10, TCG_REG_X11,
TCG_REG_X12, TCG_REG_X13, TCG_REG_X14, TCG_REG_X15,
- TCG_REG_X16, TCG_REG_X17,
TCG_REG_X0, TCG_REG_X1, TCG_REG_X2, TCG_REG_X3,
TCG_REG_X4, TCG_REG_X5, TCG_REG_X6, TCG_REG_X7,
+ /* X16 reserved as temporary */
+ /* X17 reserved as temporary */
/* X18 reserved by system */
/* X19 reserved for AREG0 */
/* X29 reserved as fp */
@@ -71,7 +72,9 @@ static TCGReg tcg_target_call_oarg_reg(TCGCallReturnKind
kind, int slot)
return TCG_REG_X0 + slot;
}
-#define TCG_REG_TMP0 TCG_REG_X30
+#define TCG_REG_TMP0 TCG_REG_X16
+#define TCG_REG_TMP1 TCG_REG_X17
+#define TCG_REG_TMP2 TCG_REG_X30
#define TCG_VEC_TMP0 TCG_REG_V31
#ifndef CONFIG_SOFTMMU
@@ -2902,6 +2905,8 @@ static void tcg_target_init(TCGContext *s)
tcg_regset_set_reg(s->reserved_regs, TCG_REG_FP);
tcg_regset_set_reg(s->reserved_regs, TCG_REG_X18); /* platform register */
tcg_regset_set_reg(s->reserved_regs, TCG_REG_TMP0);
+ tcg_regset_set_reg(s->reserved_regs, TCG_REG_TMP1);
+ tcg_regset_set_reg(s->reserved_regs, TCG_REG_TMP2);
tcg_regset_set_reg(s->reserved_regs, TCG_VEC_TMP0);
}
--
2.34.1
- [PULL 18/27] decodetree: Add --test-for-error, (continued)
- [PULL 18/27] decodetree: Add --test-for-error, Richard Henderson, 2023/05/30
- [PULL 15/27] accel/tcg: Add aarch64 lse2 load_atom_extract_al16_or_al8, Richard Henderson, 2023/05/30
- [PULL 19/27] decodetree: Fix recursion in prop_format and build_tree, Richard Henderson, 2023/05/30
- [PULL 27/27] tests/decode: Add tests for various named-field cases, Richard Henderson, 2023/05/30
- [PULL 26/27] scripts/decodetree: Implement named field support, Richard Henderson, 2023/05/30
- [PULL 05/27] tcg/i386: Support 128-bit load/store, Richard Henderson, 2023/05/30
- [PULL 09/27] tcg/aarch64: Support 128-bit load/store, Richard Henderson, 2023/05/30
- [PULL 11/27] tcg/s390x: Support 128-bit load/store, Richard Henderson, 2023/05/30
- [PULL 10/27] tcg/ppc: Support 128-bit load/store, Richard Henderson, 2023/05/30
- [PULL 08/27] tcg/aarch64: Simplify constraints on qemu_ld/st, Richard Henderson, 2023/05/30
- [PULL 07/27] tcg/aarch64: Reserve TCG_REG_TMP1, TCG_REG_TMP2,
Richard Henderson <=
- [PULL 16/27] accel/tcg: Add aarch64 store_atom_insert_al16, Richard Henderson, 2023/05/30
- [PULL 12/27] accel/tcg: Extract load_atom_extract_al16_or_al8 to host header, Richard Henderson, 2023/05/30
- [PULL 20/27] decodetree: Diagnose empty pattern group, Richard Henderson, 2023/05/30
- [PULL 23/27] docs: Document decodetree named field syntax, Richard Henderson, 2023/05/30
- [PULL 25/27] scripts/decodetree: Implement a topological sort, Richard Henderson, 2023/05/30
- Re: [PULL 00/27] tcg patch queue, Richard Henderson, 2023/05/30