Commit 56bbc2f9 authored by Richard Henderson's avatar Richard Henderson
Browse files

tcg: Remove redundant tcg_target_init checks



We've got a compile-time check for the condition in exec/cpu-defs.h.

Reviewed-by: default avatarAndreas Färber <afaerber@suse.de>
Reviewed-by: default avatarliguang <lig.fnst@cn.fujitsu.com>
Signed-off-by: default avatarRichard Henderson <rth@twiddle.net>
parent e85ef538
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -2053,12 +2053,6 @@ static const TCGTargetOpDef arm_op_defs[] = {

static void tcg_target_init(TCGContext *s)
{
#if !defined(CONFIG_USER_ONLY)
    /* fail safe */
    if ((1 << CPU_TLB_ENTRY_BITS) != sizeof(CPUTLBEntry))
        tcg_abort();
#endif

    tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);
    tcg_regset_set32(tcg_target_call_clobber_regs, 0,
                     (1 << TCG_REG_R0) |
+0 −6
Original line number Diff line number Diff line
@@ -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);
+0 −7
Original line number Diff line number Diff line
@@ -2324,13 +2324,6 @@ static void query_facilities(void)

static void tcg_target_init(TCGContext *s)
{
#if !defined(CONFIG_USER_ONLY)
    /* fail safe */
    if ((1 << CPU_TLB_ENTRY_BITS) != sizeof(CPUTLBEntry)) {
        tcg_abort();
    }
#endif

    query_facilities();

    tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffff);