--- a/qemu/tcg/mips/tcg-target.h +++ b/qemu/tcg/mips/tcg-target.h @@ -92,21 +92,21 @@ defined(_MIPS_ARCH_MIPS4) #define use_movnz_instructions 1 #else -extern bool use_movnz_instructions; +static bool use_movnz_instructions = false; #endif /* MIPS32 instruction set detection */ #if defined(__mips_isa_rev) && (__mips_isa_rev >= 1) #define use_mips32_instructions 1 #else -extern bool use_mips32_instructions; +static bool use_mips32_instructions = false; #endif /* MIPS32R2 instruction set detection */ #if defined(__mips_isa_rev) && (__mips_isa_rev >= 2) #define use_mips32r2_instructions 1 #else -extern bool use_mips32r2_instructions; +static bool use_mips32r2_instructions = false; #endif /* MIPS32R6 instruction set detection */ --- a/qemu/tcg/mips/tcg-target.inc.c +++ b/qemu/tcg/mips/tcg-target.inc.c @@ -2361,18 +2361,6 @@ instruction set. Probe it using a signal handler. */ -#ifndef use_movnz_instructions -bool use_movnz_instructions = false; -#endif - -#ifndef use_mips32_instructions -bool use_mips32_instructions = false; -#endif - -#ifndef use_mips32r2_instructions -bool use_mips32r2_instructions = false; -#endif - static volatile sig_atomic_t got_sigill; static void sigill_handler(int signo, siginfo_t *si, void *data)