* [Qemu-devel] [PULL for-2.6] tcg/mips fix
@ 2016-04-05 19:51 Richard Henderson
2016-04-05 19:51 ` [Qemu-devel] [PULL for-2.6] tcg/mips: Fix type of tcg_target_reg_alloc_order[] Richard Henderson
2016-04-05 20:48 ` [Qemu-devel] [PULL for-2.6] tcg/mips fix Peter Maydell
0 siblings, 2 replies; 3+ messages in thread
From: Richard Henderson @ 2016-04-05 19:51 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell
One compilation error to be fixed.
r~
The following changes since commit 43b0ea1a41bd0a02debd48a18e0b5460148e3f40:
bsd-user: Suppress gcc 4.x -Wpointer-sign (included in -Wall) warning (2016-04-05 17:49:41 +0100)
are available in the git repository at:
git://github.com/rth7680/qemu.git tags/pull-tcg-20160405
for you to fetch changes up to 2dc7553d0c0a3915c649e1a91b0f0be70b4674b3:
tcg/mips: Fix type of tcg_target_reg_alloc_order[] (2016-04-05 12:47:47 -0700)
----------------------------------------------------------------
tcg/mips compilation fix
----------------------------------------------------------------
James Hogan (1):
tcg/mips: Fix type of tcg_target_reg_alloc_order[]
tcg/mips/tcg-target.inc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PULL for-2.6] tcg/mips: Fix type of tcg_target_reg_alloc_order[]
2016-04-05 19:51 [Qemu-devel] [PULL for-2.6] tcg/mips fix Richard Henderson
@ 2016-04-05 19:51 ` Richard Henderson
2016-04-05 20:48 ` [Qemu-devel] [PULL for-2.6] tcg/mips fix Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2016-04-05 19:51 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, James Hogan
From: James Hogan <james.hogan@imgtec.com>
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>
---
tcg/mips/tcg-target.inc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
--
2.5.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PULL for-2.6] tcg/mips fix
2016-04-05 19:51 [Qemu-devel] [PULL for-2.6] tcg/mips fix Richard Henderson
2016-04-05 19:51 ` [Qemu-devel] [PULL for-2.6] tcg/mips: Fix type of tcg_target_reg_alloc_order[] Richard Henderson
@ 2016-04-05 20:48 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2016-04-05 20:48 UTC (permalink / raw)
To: Richard Henderson; +Cc: QEMU Developers
On 5 April 2016 at 20:51, Richard Henderson <rth@twiddle.net> wrote:
> One compilation error to be fixed.
>
>
> r~
>
>
> The following changes since commit 43b0ea1a41bd0a02debd48a18e0b5460148e3f40:
>
> bsd-user: Suppress gcc 4.x -Wpointer-sign (included in -Wall) warning (2016-04-05 17:49:41 +0100)
>
> are available in the git repository at:
>
> git://github.com/rth7680/qemu.git tags/pull-tcg-20160405
>
> for you to fetch changes up to 2dc7553d0c0a3915c649e1a91b0f0be70b4674b3:
>
> tcg/mips: Fix type of tcg_target_reg_alloc_order[] (2016-04-05 12:47:47 -0700)
>
> ----------------------------------------------------------------
> tcg/mips compilation fix
>
> ----------------------------------------------------------------
> James Hogan (1):
> tcg/mips: Fix type of tcg_target_reg_alloc_order[]
>
> tcg/mips/tcg-target.inc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-05 20:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-05 19:51 [Qemu-devel] [PULL for-2.6] tcg/mips fix Richard Henderson
2016-04-05 19:51 ` [Qemu-devel] [PULL for-2.6] tcg/mips: Fix type of tcg_target_reg_alloc_order[] Richard Henderson
2016-04-05 20:48 ` [Qemu-devel] [PULL for-2.6] tcg/mips fix Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).