summaryrefslogtreecommitdiffstats
path: root/drivers/bios_emulator/biosemui.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-14 20:56:42 -0700
committerSimon Glass <sjg@chromium.org>2014-11-25 07:11:17 -0700
commitb3521f2e495c8cd91226af9b34f2d7ef5a24c665 (patch)
treeda657139176e9a726c5376d940a3e7851ad06843 /drivers/bios_emulator/biosemui.h
parenta3c700ec7611ce579ecab7005c66c6d1e7b1dbac (diff)
downloadblackbird-obmc-uboot-b3521f2e495c8cd91226af9b34f2d7ef5a24c665.tar.gz
blackbird-obmc-uboot-b3521f2e495c8cd91226af9b34f2d7ef5a24c665.zip
bios_emulator: Add an option to enable debugging
At present there are DEBUG options spread around the place. If you enable one and not another you can end up with an emulator that does not work, since each file can have a different view of what the registers look like. To fix this, create a global CONFIG_X86EMU_DEBUG option that keeps everything consistent. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/bios_emulator/biosemui.h')
-rw-r--r--drivers/bios_emulator/biosemui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bios_emulator/biosemui.h b/drivers/bios_emulator/biosemui.h
index 8c1f111fc8..7853015c1e 100644
--- a/drivers/bios_emulator/biosemui.h
+++ b/drivers/bios_emulator/biosemui.h
@@ -48,7 +48,7 @@
#include <asm/io.h>
/*---------------------- Macros and type definitions ----------------------*/
-#ifdef DEBUG
+#ifdef CONFIG_X86EMU_DEBUG
#define DB(x) x
#else
#define DB(x) do{}while(0);
OpenPOWER on IntegriCloud