From f8435ca3a65b77711b535c6d3e415055c7b175a5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 19 Dec 2018 10:50:46 -0500 Subject: [PATCH] Temporarily disable tcg_debug_assert() Backporting 6fa2cef205a60b5c5c3b058f53852416b885c455 by Thomas Huth started invoking assertions on clang. This means Unicorn is doing something silly. This should be tracked down, but in the meantime, restore behavior to allow tests to still be run. --- qemu/tcg/tcg.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qemu/tcg/tcg.h b/qemu/tcg/tcg.h index 1b6a6326..93146b90 100644 --- a/qemu/tcg/tcg.h +++ b/qemu/tcg/tcg.h @@ -233,8 +233,12 @@ 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) #else +# if 0 /* UNICORN: Enabling this causes assertions. Need to track these down. */ # define tcg_debug_assert(X) \ do { if (!(X)) { __builtin_unreachable(); } } while (0) +# else +# define tcg_debug_assert(X) do { (void)(X); } while (0) +# endif #endif typedef struct TCGRelocation {