From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEQRl-0003bv-Qz for qemu-devel@nongnu.org; Wed, 19 Sep 2012 16:00:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEQRg-0002Bw-PA for qemu-devel@nongnu.org; Wed, 19 Sep 2012 16:00:33 -0400 Received: from hall.aurel32.net ([88.191.126.93]:52044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEQRg-00029S-Id for qemu-devel@nongnu.org; Wed, 19 Sep 2012 16:00:28 -0400 From: Aurelien Jarno Date: Wed, 19 Sep 2012 22:00:23 +0200 Message-Id: <1348084823-18277-10-git-send-email-aurelien@aurel32.net> In-Reply-To: <1348084823-18277-1-git-send-email-aurelien@aurel32.net> References: <1348084823-18277-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH 9/9] tcg: remove #ifdef #endif around TCGOpcode tests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno Commit 25c4d9cc changed all TCGOpcode enums to be available, so we don't need to #ifdef #endif the one that are available only on some targets. This makes the code easier to read. Signed-off-by: Aurelien Jarno --- tcg/tcg.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index b8a1bec..57fca70 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -937,11 +937,7 @@ void tcg_dump_ops(TCGContext *s) args[nb_oargs + i])); } } - } else if (c == INDEX_op_movi_i32 -#if TCG_TARGET_REG_BITS == 64 - || c == INDEX_op_movi_i64 -#endif - ) { + } else if (c == INDEX_op_movi_i32 || c == INDEX_op_movi_i64) { tcg_target_ulong val; TCGHelperInfo *th; @@ -991,17 +987,11 @@ void tcg_dump_ops(TCGContext *s) } switch (c) { case INDEX_op_brcond_i32: -#if TCG_TARGET_REG_BITS == 32 case INDEX_op_brcond2_i32: -#elif TCG_TARGET_REG_BITS == 64 case INDEX_op_brcond_i64: -#endif case INDEX_op_setcond_i32: -#if TCG_TARGET_REG_BITS == 32 case INDEX_op_setcond2_i32: -#elif TCG_TARGET_REG_BITS == 64 case INDEX_op_setcond_i64: -#endif if (args[k] < ARRAY_SIZE(cond_name) && cond_name[args[k]]) { qemu_log(",%s", cond_name[args[k++]]); } else { @@ -2103,16 +2093,12 @@ static inline int tcg_gen_code_common(TCGContext *s, uint8_t *gen_code_buf, #endif switch(opc) { case INDEX_op_mov_i32: -#if TCG_TARGET_REG_BITS == 64 case INDEX_op_mov_i64: -#endif dead_args = s->op_dead_args[op_index]; tcg_reg_alloc_mov(s, def, args, dead_args); break; case INDEX_op_movi_i32: -#if TCG_TARGET_REG_BITS == 64 case INDEX_op_movi_i64: -#endif tcg_reg_alloc_movi(s, args); break; case INDEX_op_debug_insn_start: -- 1.7.10.4