summaryrefslogtreecommitdiffstats
path: root/tcg/mips/tcg-target.inc.c
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2016-04-01 15:49:39 +0100
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 20:01:35 -0600
commita63a615f79ecc4462feb47b3dd95ec89be1503cb (patch)
treeb5358e6c8dbbfad36b6c32e5a9a92c41dcedba88 /tcg/mips/tcg-target.inc.c
parent80c79670a1a91216a802ca6e3b989730d7d290ab (diff)
downloadhqemu-a63a615f79ecc4462feb47b3dd95ec89be1503cb.zip
hqemu-a63a615f79ecc4462feb47b3dd95ec89be1503cb.tar.gz
tcg/mips: Fix type of tcg_target_reg_alloc_order[]
The MIPS TCG backend is the only one to have tcg_target_reg_alloc_order[] elements of type TCGReg rather than int. This resulted in commit 91478cefaaf2 ("tcg: Allocate indirect_base temporaries in a different order") breaking the build on MIPS since the type differed from indirect_reg_alloc_order[]: tcg/tcg.c:1725:44: error: pointer type mismatch in conditional expression [-Werror] order = rev ? indirect_reg_alloc_order : tcg_target_reg_alloc_order; ^ Make it an array of ints to fix the build and match other architectures. Fixes: 91478cefaaf2 ("tcg: Allocate indirect_base temporaries in a different order") Signed-off-by: James Hogan <james.hogan@imgtec.com> Acked-by: Aurelien Jarno <aurelien@aurel32.net> Message-Id: <1459522179-6584-1-git-send-email-james.hogan@imgtec.com> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/mips/tcg-target.inc.c')
-rw-r--r--tcg/mips/tcg-target.inc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c
index 297bd00..682e198 100644
--- a/tcg/mips/tcg-target.inc.c
+++ b/tcg/mips/tcg-target.inc.c
@@ -76,7 +76,7 @@ static const char * const tcg_target_reg_names[TCG_TARGET_NB_REGS] = {
#define TCG_TMP1 TCG_REG_T9
/* check if we really need so many registers :P */
-static const TCGReg tcg_target_reg_alloc_order[] = {
+static const int tcg_target_reg_alloc_order[] = {
/* Call saved registers. */
TCG_REG_S0,
TCG_REG_S1,
OpenPOWER on IntegriCloud