diff --git a/qemu/tcg/tcg.h b/qemu/tcg/tcg.h index 0c410e19..fa88c2d1 100644 --- a/qemu/tcg/tcg.h +++ b/qemu/tcg/tcg.h @@ -232,11 +232,9 @@ typedef uint64_t tcg_insn_unit; #if defined CONFIG_DEBUG_TCG || defined QEMU_STATIC_ANALYSIS # define tcg_debug_assert(X) do { assert(X); } while (0) -#elif QEMU_GNUC_PREREQ(4, 5) +#else # define tcg_debug_assert(X) \ do { if (!(X)) { __builtin_unreachable(); } } while (0) -#else -# define tcg_debug_assert(X) do { (void)(X); } while (0) #endif typedef struct TCGRelocation {