diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-05-03 18:09:45 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-05-08 11:15:18 -0500 |
commit | 17904bcfb760bdf6bd462e0396478893555d1edb (patch) | |
tree | 73c3b1b892a10ad55fe86bc0d2cc3f69c1f7fe8b | |
parent | 165ceac0950dcfdf7a2676d6189bbab3d67701f1 (diff) | |
download | qemu-17904bcfb760bdf6bd462e0396478893555d1edb.zip qemu-17904bcfb760bdf6bd462e0396478893555d1edb.tar.gz qemu-17904bcfb760bdf6bd462e0396478893555d1edb.tar.bz2 |
tci: Fix wrong macro name for debug code
Code which is compiled with CONFIG_TCG_DEBUG (set by configure option
--enable-debug-tcg) should not disable the assert macro by
defining NDEBUG.
With the wrong macro name CONFIG_TCG_DEBUG, all assertions in tci.c
were completely useless because NDEBUG was always defined.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | tci.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ #include "config.h" /* Defining NDEBUG disables assertions (which makes the code faster). */ -#if !defined(CONFIG_TCG_DEBUG) && !defined(NDEBUG) +#if !defined(CONFIG_DEBUG_TCG) && !defined(NDEBUG) # define NDEBUG #endif |