qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 09/15] tcg-mips: Fix exit_tb for mips64


From: Richard Henderson
Subject: [Qemu-devel] [PATCH 09/15] tcg-mips: Fix exit_tb for mips64
Date: Tue, 9 Feb 2016 21:39:57 +1100

Signed-off-by: Richard Henderson <address@hidden>
---
 tcg/mips/tcg-target.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c
index b5982de..b8c5d90 100644
--- a/tcg/mips/tcg-target.c
+++ b/tcg/mips/tcg-target.c
@@ -1656,6 +1656,7 @@ static inline void tcg_out_op(TCGContext *s, TCGOpcode 
opc,
         {
             TCGReg b0 = TCG_REG_ZERO;
 
+            a0 = (intptr_t)a0;
             if (a0 & ~0xffff) {
                 tcg_out_movi(s, TCG_TYPE_PTR, TCG_REG_V0, a0 & ~0xffff);
                 b0 = TCG_REG_V0;
-- 
2.5.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]