[Top][All Lists]

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

[Qemu-devel] [PATCH 3/4] tcg: Update TCGV_{UNUSED,EQUAL}() macros

From: Andreas Färber
Subject: [Qemu-devel] [PATCH 3/4] tcg: Update TCGV_{UNUSED,EQUAL}() macros
Date: Sat, 10 Dec 2011 10:02:26 +0100

Switch them to use the new {MAKE,GET}_TCGV_TL() macros.

Signed-off-by: Andreas Färber <address@hidden>
 tcg/tcg-op.h |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h
index e5c2e37..a6c3d5f 100644
--- a/tcg/tcg-op.h
+++ b/tcg/tcg-op.h
@@ -2129,16 +2129,15 @@ static inline void tcg_gen_deposit_i64(TCGv_i64 ret, 
TCGv_i64 arg1,
 #define TCGv TCGv_i32
 #define MAKE_TCGV_TL(x) MAKE_TCGV_I32(x)
 #define GET_TCGV_TL(t) GET_TCGV_I32(t)
-#define TCGV_UNUSED(x) TCGV_UNUSED_I32(x)
-#define TCGV_EQUAL(a, b) TCGV_EQUAL_I32(a, b)
 #define TCGv TCGv_i64
 #define MAKE_TCGV_TL(x) MAKE_TCGV_I64(x)
 #define GET_TCGV_TL(t) GET_TCGV_I64(t)
-#define TCGV_UNUSED(x) TCGV_UNUSED_I64(x)
-#define TCGV_EQUAL(a, b) TCGV_EQUAL_I64(a, b)
+#define TCGV_UNUSED(x) x = MAKE_TCGV_TL(-1)
+#define TCGV_EQUAL(a, b) (GET_TCGV_TL(a) == GET_TCGV_TL(b))
 static inline TCGv tcg_temp_new(void)

reply via email to

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