This patch unifies the use of config options in v2 to all start with CONFIG_
[coreboot.git] / util / vgabios / x86emu / src / x86emu / x86emu / debug.h
index 95a109b2613598e4052445acadc7ff73595c3052..7bf62c799542b39eac4c66431ba5dc425e97689f 100755 (executable)
@@ -48,7 +48,7 @@
 #define CHECK_MEM_ACCESS_F              0x4 /*using regular linear pointer */
 #define CHECK_DATA_ACCESS_F             0x8 /*using segment:offset*/
 
-#ifdef DEBUG
+#ifdef CONFIG_DEBUG
 # define CHECK_IP_FETCH()               (M.x86.check & CHECK_IP_FETCH_F)
 # define CHECK_SP_ACCESS()              (M.x86.check & CHECK_SP_ACCESS_F)
 # define CHECK_MEM_ACCESS()             (M.x86.check & CHECK_MEM_ACCESS_F)
@@ -60,7 +60,7 @@
 # define CHECK_DATA_ACCESS()
 #endif
 
-#ifdef DEBUG
+#ifdef CONFIG_DEBUG
 # define DEBUG_INSTRUMENT()     (M.x86.debug & DEBUG_INSTRUMENT_F)
 # define DEBUG_DECODE()         (M.x86.debug & DEBUG_DECODE_F)
 # define DEBUG_TRACE()          (M.x86.debug & DEBUG_TRACE_F)
@@ -99,7 +99,7 @@
 # define DEBUG_DECODE_NOPRINT() 0
 #endif
 
-#ifdef DEBUG
+#ifdef CONFIG_DEBUG
 
 # define DECODE_PRINTF(x)       if (DEBUG_DECODE()) \
                                     x86emu_decode_printf(x)
 # define SAVE_IP_CS(x,y)
 #endif
 
-#ifdef DEBUG
+#ifdef CONFIG_DEBUG
 #define TRACE_REGS()                                        \
     if (DEBUG_DISASSEMBLE()) {                              \
         x86emu_just_disassemble();                          \
 # define TRACE_REGS()
 #endif
 
-#ifdef DEBUG
+#ifdef CONFIG_DEBUG
 # define SINGLE_STEP()      if (DEBUG_STEP()) x86emu_single_step()
 #else
 # define SINGLE_STEP()
     TRACE_REGS();           \
     SINGLE_STEP()
 
-#ifdef DEBUG
+#ifdef CONFIG_DEBUG
 # define START_OF_INSTR()
 # define END_OF_INSTR()     EndOfTheInstructionProcedure: x86emu_end_instr();
 # define END_OF_INSTR_NO_TRACE()    x86emu_end_instr();
 # define END_OF_INSTR_NO_TRACE()
 #endif
 
-#ifdef DEBUG
+#ifdef CONFIG_DEBUG
 # define  CALL_TRACE(u,v,w,x,s)                                 \
     if (DEBUG_TRACECALLREGS())                                  \
         x86emu_dump_regs();                                     \
 # define RETURN_TRACE(n,u,v)
 #endif
 
-#ifdef DEBUG
+#ifdef CONFIG_DEBUG
 #define DB(x)   x
 #else
 #define DB(x)