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.
This commit is contained in:
Lioncash 2018-12-19 10:50:46 -05:00
parent 8276a4dc66
commit f8435ca3a6
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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 {