From 56bbc2f967ce185fa1c5c39e1aeb5b68b26242e9 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 4 Jun 2013 09:53:19 -0700 Subject: tcg: Remove redundant tcg_target_init checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We've got a compile-time check for the condition in exec/cpu-defs.h. Reviewed-by: Andreas Färber Reviewed-by: liguang Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tcg/i386') diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c index 9eec06c..9e95477 100644 --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -2283,12 +2283,6 @@ static void tcg_target_init(TCGContext *s) } #endif -#if !defined(CONFIG_USER_ONLY) - /* fail safe */ - if ((1 << CPU_TLB_ENTRY_BITS) != sizeof(CPUTLBEntry)) - tcg_abort(); -#endif - if (TCG_TARGET_REG_BITS == 64) { tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff); tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I64], 0, 0xffff); -- cgit v1.1