mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-25 04:39:21 +00:00
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:
parent
8276a4dc66
commit
f8435ca3a6
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue