diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-04-11 21:21:46 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-04-12 14:33:21 +0200 |
commit | c30d1aea1478cd55e8cfdf866afa39cd00bb4ea1 (patch) | |
tree | 2b17a34b523557d86111110a1390ce7c259ded65 /configure | |
parent | e03ba136377ff0038276ba493473127338c68ebc (diff) | |
download | qemu-c30d1aea1478cd55e8cfdf866afa39cd00bb4ea1.zip qemu-c30d1aea1478cd55e8cfdf866afa39cd00bb4ea1.tar.gz qemu-c30d1aea1478cd55e8cfdf866afa39cd00bb4ea1.tar.bz2 |
cpu-exec: Allow "-d exec" in non-debug builds (drop CONFIG_DEBUG_EXEC)
The CONFIG_DEBUG_EXEC define compiles out a single qemu_log_mask()
call, which is a pretty trivial cost even for something in the main
cpu_exec() loop. Having this be conditionally defined means that
'-d exec' on a non-debug build will silently do nothing. Drop the
define and the configure machinery that sets it, in favour of just
always allowing this log option to be enabled at runtime. As a
concession to the mainloopiness, we use qemu_loglevel_mask()+qemu_log()
rather than qemu_log_mask() to avoid the function call overhead.
Note that DEBUG_DISAS is always defined, so removing the
'|| defined(CONFIG_DEBUG_EXEC)' from those conditionals makes
no behavioural change for that logging.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -3471,9 +3471,6 @@ echo "ARCH=$ARCH" >> $config_host_mak if test "$debug_tcg" = "yes" ; then echo "CONFIG_DEBUG_TCG=y" >> $config_host_mak fi -if test "$debug" = "yes" ; then - echo "CONFIG_DEBUG_EXEC=y" >> $config_host_mak -fi if test "$strip_opt" = "yes" ; then echo "STRIP=${strip}" >> $config_host_mak fi |