render / rpms / qemu

Forked from rpms/qemu 9 months ago
Clone

Blame 0076-tcg-remove-ifdef-endif-around-TCGOpcode-tests.patch

5544c1
From 3942910a66f682b98ac53ac2d2fba65b9c75eefd Mon Sep 17 00:00:00 2001
5544c1
From: Aurelien Jarno <aurelien@aurel32.net>
5544c1
Date: Fri, 21 Sep 2012 10:02:45 +0200
5544c1
Subject: [PATCH] tcg: remove #ifdef #endif around TCGOpcode tests
5544c1
5544c1
Commit 25c4d9cc changed all TCGOpcode enums to be available, so we don't
5544c1
need to #ifdef #endif the one that are available only on some targets.
5544c1
This makes the code easier to read.
5544c1
5544c1
Reviewed-by: Richard Henderson <rth@twiddle.net>
5544c1
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
5544c1
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
5544c1
---
5544c1
 tcg/tcg.c | 13 +------------
5544c1
 1 file changed, 1 insertion(+), 12 deletions(-)
5544c1
5544c1
diff --git a/tcg/tcg.c b/tcg/tcg.c
5544c1
index 24ce830..93421cd 100644
5544c1
--- a/tcg/tcg.c
5544c1
+++ b/tcg/tcg.c
5544c1
@@ -937,11 +937,7 @@ void tcg_dump_ops(TCGContext *s)
5544c1
                                                        args[nb_oargs + i]));
5544c1
                 }
5544c1
             }
5544c1
-        } else if (c == INDEX_op_movi_i32 
5544c1
-#if TCG_TARGET_REG_BITS == 64
5544c1
-                   || c == INDEX_op_movi_i64
5544c1
-#endif
5544c1
-                   ) {
5544c1
+        } else if (c == INDEX_op_movi_i32 || c == INDEX_op_movi_i64) {
5544c1
             tcg_target_ulong val;
5544c1
             TCGHelperInfo *th;
5544c1
 
5544c1
@@ -993,14 +989,11 @@ void tcg_dump_ops(TCGContext *s)
5544c1
             case INDEX_op_brcond_i32:
5544c1
             case INDEX_op_setcond_i32:
5544c1
             case INDEX_op_movcond_i32:
5544c1
-#if TCG_TARGET_REG_BITS == 32
5544c1
             case INDEX_op_brcond2_i32:
5544c1
             case INDEX_op_setcond2_i32:
5544c1
-#else
5544c1
             case INDEX_op_brcond_i64:
5544c1
             case INDEX_op_setcond_i64:
5544c1
             case INDEX_op_movcond_i64:
5544c1
-#endif
5544c1
                 if (args[k] < ARRAY_SIZE(cond_name) && cond_name[args[k]]) {
5544c1
                     qemu_log(",%s", cond_name[args[k++]]);
5544c1
                 } else {
5544c1
@@ -2095,16 +2088,12 @@ static inline int tcg_gen_code_common(TCGContext *s, uint8_t *gen_code_buf,
5544c1
 #endif
5544c1
         switch(opc) {
5544c1
         case INDEX_op_mov_i32:
5544c1
-#if TCG_TARGET_REG_BITS == 64
5544c1
         case INDEX_op_mov_i64:
5544c1
-#endif
5544c1
             dead_args = s->op_dead_args[op_index];
5544c1
             tcg_reg_alloc_mov(s, def, args, dead_args);
5544c1
             break;
5544c1
         case INDEX_op_movi_i32:
5544c1
-#if TCG_TARGET_REG_BITS == 64
5544c1
         case INDEX_op_movi_i64:
5544c1
-#endif
5544c1
             tcg_reg_alloc_movi(s, args);
5544c1
             break;
5544c1
         case INDEX_op_debug_insn_start:
5544c1
-- 
5544c1
1.7.12.1
5544c1