-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
- Loading branch information
Showing
3 changed files
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* SPDX-License-Identifier: MIT */ | ||
/* | ||
* Define tcg_debug_assert | ||
* Copyright (c) 2008 Fabrice Bellard | ||
*/ | ||
|
||
#ifndef TCG_DEBUG_ASSERT_H | ||
#define TCG_DEBUG_ASSERT_H | ||
|
||
#if defined CONFIG_DEBUG_TCG || defined QEMU_STATIC_ANALYSIS | ||
# define tcg_debug_assert(X) do { assert(X); } while (0) | ||
#else | ||
# define tcg_debug_assert(X) \ | ||
do { if (!(X)) { __builtin_unreachable(); } } while (0) | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters