if name in debug_flags:
raise AttributeError, "Flag %s already specified" % name
debug_flags[name] = (name, (), desc)
-TraceFlag = DebugFlag
def CompoundFlag(name, flags, desc=None):
if name in debug_flags:
debug_flags[name] = (name, compound, desc)
Export('DebugFlag')
-Export('TraceFlag')
Export('CompoundFlag')
########################################################################
env.Append(BUILDERS = { 'ISADesc' : isa_desc_builder })
-TraceFlag('IntRegs')
-TraceFlag('FloatRegs')
-TraceFlag('MiscRegs')
+DebugFlag('IntRegs')
+DebugFlag('FloatRegs')
+DebugFlag('MiscRegs')
CompoundFlag('Registers', [ 'IntRegs', 'FloatRegs', 'MiscRegs' ])
SimObject('ArmNativeTrace.py')
SimObject('ArmTLB.py')
- TraceFlag('Arm')
- TraceFlag('TLBVerbose')
- TraceFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
- TraceFlag('Predecoder', "Instructions returned by the predecoder")
+ DebugFlag('Arm')
+ DebugFlag('TLBVerbose')
+ DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
+ DebugFlag('Predecoder', "Instructions returned by the predecoder")
if env['FULL_SYSTEM']:
Source('interrupts.cc')
Source('stacktrace.cc')
Source('dsp.cc')
SimObject('MipsTLB.py')
- TraceFlag('MipsPRA')
+ DebugFlag('MipsPRA')
if env['FULL_SYSTEM']:
SimObject('MipsSystem.py')
Source('utility.cc')
SimObject('PowerTLB.py')
- TraceFlag('Power')
+ DebugFlag('Power')
if not env['FULL_SYSTEM']:
Source('process.cc')
SimObject('SparcNativeTrace.py')
SimObject('SparcTLB.py')
- TraceFlag('Sparc', "Generic SPARC ISA stuff")
- TraceFlag('RegisterWindows', "Register window manipulation")
+ DebugFlag('Sparc', "Generic SPARC ISA stuff")
+ DebugFlag('RegisterWindows', "Register window manipulation")
if env['FULL_SYSTEM']:
SimObject('SparcSystem.py')
SimObject('X86NativeTrace.py')
SimObject('X86TLB.py')
- TraceFlag('Predecoder', "Predecoder debug output")
- TraceFlag('X86', "Generic X86 ISA debugging")
+ DebugFlag('Predecoder', "Predecoder debug output")
+ DebugFlag('X86', "Generic X86 ISA debugging")
if env['FULL_SYSTEM']:
- TraceFlag('LocalApic', "Local APIC debugging")
- TraceFlag('PageTableWalker', \
+ DebugFlag('LocalApic', "Local APIC debugging")
+ DebugFlag('PageTableWalker', \
"Page table walker state machine debugging")
- TraceFlag('Faults', "Trace all faults/exceptions/traps")
+ DebugFlag('Faults', "Trace all faults/exceptions/traps")
SimObject('X86LocalApic.py')
SimObject('X86System.py')
Source('stats/text.cc')
-TraceFlag('Annotate', "State machine annotation debugging")
-TraceFlag('AnnotateQ', "State machine annotation queue debugging")
-TraceFlag('AnnotateVerbose', "Dump all state machine annotation details")
-TraceFlag('GDBAcc', "Remote debugger accesses")
-TraceFlag('GDBExtra', "Dump extra information on reads and writes")
-TraceFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
-TraceFlag('GDBRead', "Reads to the remote address space")
-TraceFlag('GDBRecv', "Messages received from the remote application")
-TraceFlag('GDBSend', "Messages sent to the remote application")
-TraceFlag('GDBWrite', "Writes to the remote address space")
-TraceFlag('SQL', "SQL queries sent to the server")
-TraceFlag('StatEvents', "Statistics event tracking")
+DebugFlag('Annotate', "State machine annotation debugging")
+DebugFlag('AnnotateQ', "State machine annotation queue debugging")
+DebugFlag('AnnotateVerbose', "Dump all state machine annotation details")
+DebugFlag('GDBAcc', "Remote debugger accesses")
+DebugFlag('GDBExtra', "Dump extra information on reads and writes")
+DebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
+DebugFlag('GDBRead', "Reads to the remote address space")
+DebugFlag('GDBRecv', "Messages received from the remote application")
+DebugFlag('GDBSend', "Messages sent to the remote application")
+DebugFlag('GDBWrite', "Writes to the remote address space")
+DebugFlag('SQL', "SQL queries sent to the server")
+DebugFlag('StatEvents', "Statistics event tracking")
CompoundFlag('GDBAll',
[ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
if env['FULL_SYSTEM']:
SimObject('VncServer.py')
Source('vncserver.cc')
- TraceFlag('VNC')
+ DebugFlag('VNC')
Source('convert.cc')
if env['USE_CHECKER']:
Source('checker/cpu.cc')
- TraceFlag('Checker')
+ DebugFlag('Checker')
checker_supports = False
for i in CheckerSupportedCPUList:
if i in env['CPU_MODELS']:
print ", please set USE_CHECKER=False or use one of those CPU models"
Exit(1)
-TraceFlag('Activity')
-TraceFlag('Commit')
-TraceFlag('Context')
-TraceFlag('Decode')
-TraceFlag('DynInst')
-TraceFlag('ExecEnable')
-TraceFlag('ExecCPSeq')
-TraceFlag('ExecEffAddr')
-TraceFlag('ExecFaulting', 'Trace faulting instructions')
-TraceFlag('ExecFetchSeq')
-TraceFlag('ExecOpClass')
-TraceFlag('ExecRegDelta')
-TraceFlag('ExecResult')
-TraceFlag('ExecSpeculative')
-TraceFlag('ExecSymbol')
-TraceFlag('ExecThread')
-TraceFlag('ExecTicks')
-TraceFlag('ExecMicro')
-TraceFlag('ExecMacro')
-TraceFlag('ExecUser')
-TraceFlag('ExecKernel')
-TraceFlag('ExecAsid')
-TraceFlag('Fetch')
-TraceFlag('IntrControl')
-TraceFlag('PCEvent')
-TraceFlag('Quiesce')
+DebugFlag('Activity')
+DebugFlag('Commit')
+DebugFlag('Context')
+DebugFlag('Decode')
+DebugFlag('DynInst')
+DebugFlag('ExecEnable')
+DebugFlag('ExecCPSeq')
+DebugFlag('ExecEffAddr')
+DebugFlag('ExecFaulting', 'Trace faulting instructions')
+DebugFlag('ExecFetchSeq')
+DebugFlag('ExecOpClass')
+DebugFlag('ExecRegDelta')
+DebugFlag('ExecResult')
+DebugFlag('ExecSpeculative')
+DebugFlag('ExecSymbol')
+DebugFlag('ExecThread')
+DebugFlag('ExecTicks')
+DebugFlag('ExecMicro')
+DebugFlag('ExecMacro')
+DebugFlag('ExecUser')
+DebugFlag('ExecKernel')
+DebugFlag('ExecAsid')
+DebugFlag('Fetch')
+DebugFlag('IntrControl')
+DebugFlag('PCEvent')
+DebugFlag('Quiesce')
CompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
SimObject('InOrderCPU.py')
SimObject('InOrderTrace.py')
- TraceFlag('ResReqCount')
- TraceFlag('InOrderStage')
- TraceFlag('InOrderStall')
- TraceFlag('InOrderCPU')
- TraceFlag('RegDepMap')
- TraceFlag('InOrderDynInst')
- TraceFlag('Resource')
- TraceFlag('InOrderAGEN')
- TraceFlag('InOrderFetchSeq')
- TraceFlag('InOrderTLB')
- TraceFlag('InOrderCachePort')
- TraceFlag('InOrderBPred')
- TraceFlag('InOrderDecode')
- TraceFlag('InOrderExecute')
- TraceFlag('InOrderInstBuffer')
- TraceFlag('InOrderUseDef')
- TraceFlag('InOrderMDU')
- TraceFlag('InOrderGraduation')
- TraceFlag('ThreadModel')
- TraceFlag('RefCount')
- TraceFlag('AddrDep')
- TraceFlag('SkedCache')
+ DebugFlag('ResReqCount')
+ DebugFlag('InOrderStage')
+ DebugFlag('InOrderStall')
+ DebugFlag('InOrderCPU')
+ DebugFlag('RegDepMap')
+ DebugFlag('InOrderDynInst')
+ DebugFlag('Resource')
+ DebugFlag('InOrderAGEN')
+ DebugFlag('InOrderFetchSeq')
+ DebugFlag('InOrderTLB')
+ DebugFlag('InOrderCachePort')
+ DebugFlag('InOrderBPred')
+ DebugFlag('InOrderDecode')
+ DebugFlag('InOrderExecute')
+ DebugFlag('InOrderInstBuffer')
+ DebugFlag('InOrderUseDef')
+ DebugFlag('InOrderMDU')
+ DebugFlag('InOrderGraduation')
+ DebugFlag('ThreadModel')
+ DebugFlag('RefCount')
+ DebugFlag('AddrDep')
+ DebugFlag('SkedCache')
CompoundFlag('InOrderCPUAll', [ 'InOrderStage', 'InOrderStall', 'InOrderCPU',
'InOrderMDU', 'InOrderAGEN', 'InOrderFetchSeq', 'InOrderTLB', 'InOrderBPred',
Import('*')
if 'O3CPU' in env['CPU_MODELS'] or 'OzoneCPU' in env['CPU_MODELS']:
- TraceFlag('CommitRate')
- TraceFlag('IEW')
- TraceFlag('IQ')
+ DebugFlag('CommitRate')
+ DebugFlag('IEW')
+ DebugFlag('IQ')
if 'O3CPU' in env['CPU_MODELS']:
SimObject('FUPool.py')
Source('store_set.cc')
Source('thread_context.cc')
- TraceFlag('LSQ')
- TraceFlag('LSQUnit')
- TraceFlag('MemDepUnit')
- TraceFlag('O3CPU')
- TraceFlag('ROB')
- TraceFlag('Rename')
- TraceFlag('Scoreboard')
- TraceFlag('StoreSet')
- TraceFlag('Writeback')
+ DebugFlag('LSQ')
+ DebugFlag('LSQUnit')
+ DebugFlag('MemDepUnit')
+ DebugFlag('O3CPU')
+ DebugFlag('ROB')
+ DebugFlag('Rename')
+ DebugFlag('Scoreboard')
+ DebugFlag('StoreSet')
+ DebugFlag('Writeback')
CompoundFlag('O3CPUAll', [ 'Fetch', 'Decode', 'Rename', 'IEW', 'Commit',
'IQ', 'ROB', 'FreeList', 'LSQ', 'LSQUnit', 'StoreSet', 'MemDepUnit',
Source('lw_lsq.cc')
Source('rename_table.cc')
- TraceFlag('BE')
- TraceFlag('FE')
- TraceFlag('IBE')
- TraceFlag('OzoneCPU')
- TraceFlag('OzoneLSQ')
+ DebugFlag('BE')
+ DebugFlag('FE')
+ DebugFlag('IBE')
+ DebugFlag('OzoneCPU')
+ DebugFlag('OzoneLSQ')
CompoundFlag('OzoneCPUAll', [ 'BE', 'FE', 'IBE', 'OzoneLSQ', 'OzoneCPU' ])
Source('btb.cc')
Source('ras.cc')
Source('tournament.cc')
- TraceFlag('FreeList')
+ DebugFlag('FreeList')
if 'AtomicSimpleCPU' in env['CPU_MODELS'] or \
'TimingSimpleCPU' in env['CPU_MODELS']:
- TraceFlag('SimpleCPU')
+ DebugFlag('SimpleCPU')
if need_simple_base:
Source('base.cc')
Source('SeriesRequestGenerator.cc')
Source('InvalidateGenerator.cc')
-TraceFlag('DirectedTest')
+DebugFlag('DirectedTest')
Source('memtest.cc')
-TraceFlag('MemTest')
+DebugFlag('MemTest')
Source('networktest.cc', Werror=False)
-TraceFlag('NetworkTest')
+DebugFlag('NetworkTest')
Source('Check.cc')
Source('CheckTable.cc')
-TraceFlag('RubyTest')
+DebugFlag('RubyTest')
Source('uart.cc')
Source('uart8250.cc')
- TraceFlag('DiskImageRead')
- TraceFlag('DiskImageWrite')
- TraceFlag('DMA')
- TraceFlag('DMACopyEngine')
- TraceFlag('Ethernet')
- TraceFlag('EthernetCksum')
- TraceFlag('EthernetDMA')
- TraceFlag('EthernetData')
- TraceFlag('EthernetDesc')
- TraceFlag('EthernetEEPROM')
- TraceFlag('EthernetIntr')
- TraceFlag('EthernetPIO')
- TraceFlag('EthernetSM')
- TraceFlag('IdeCtrl')
- TraceFlag('IdeDisk')
- TraceFlag('Intel8254Timer')
- TraceFlag('IsaFake')
- TraceFlag('MC146818')
- TraceFlag('PCIDEV')
- TraceFlag('PciConfigAll')
- TraceFlag('SimpleDisk')
- TraceFlag('SimpleDiskData')
- TraceFlag('Terminal')
- TraceFlag('TerminalVerbose')
- TraceFlag('Uart')
+ DebugFlag('DiskImageRead')
+ DebugFlag('DiskImageWrite')
+ DebugFlag('DMA')
+ DebugFlag('DMACopyEngine')
+ DebugFlag('Ethernet')
+ DebugFlag('EthernetCksum')
+ DebugFlag('EthernetDMA')
+ DebugFlag('EthernetData')
+ DebugFlag('EthernetDesc')
+ DebugFlag('EthernetEEPROM')
+ DebugFlag('EthernetIntr')
+ DebugFlag('EthernetPIO')
+ DebugFlag('EthernetSM')
+ DebugFlag('IdeCtrl')
+ DebugFlag('IdeDisk')
+ DebugFlag('Intel8254Timer')
+ DebugFlag('IsaFake')
+ DebugFlag('MC146818')
+ DebugFlag('PCIDEV')
+ DebugFlag('PciConfigAll')
+ DebugFlag('SimpleDisk')
+ DebugFlag('SimpleDiskData')
+ DebugFlag('Terminal')
+ DebugFlag('TerminalVerbose')
+ DebugFlag('Uart')
CompoundFlag('DiskImageAll', [ 'DiskImageRead', 'DiskImageWrite' ])
CompoundFlag('EthernetAll', [ 'Ethernet', 'EthernetPIO', 'EthernetDMA',
Source('tsunami_io.cc')
Source('tsunami_pchip.cc')
- TraceFlag('AlphaBackdoor')
- TraceFlag('Tsunami')
+ DebugFlag('AlphaBackdoor')
+ DebugFlag('Tsunami')
Source('rv_ctrl.cc')
Source('realview.cc')
- TraceFlag('AMBA')
- TraceFlag('PL111')
- TraceFlag('Pl050')
- TraceFlag('GIC')
+ DebugFlag('AMBA')
+ DebugFlag('PL111')
+ DebugFlag('Pl050')
+ DebugFlag('GIC')
if env['FULL_SYSTEM'] and env['TARGET_ISA'] == 'mips':
SimObject('Malta.py')
- TraceFlag('Malta')
+ DebugFlag('Malta')
Source('malta.cc')
Source('malta_cchip.cc')
Source('t1000.cc')
Source('mm_disk.cc')
- TraceFlag('Iob')
+ DebugFlag('Iob')
SimObject('Cmos.py')
Source('cmos.cc')
- TraceFlag('CMOS', 'Accesses to CMOS devices')
+ DebugFlag('CMOS', 'Accesses to CMOS devices')
SimObject('I8259.py')
Source('i8259.cc')
- TraceFlag('I8259', 'Accesses to the I8259 PIC devices')
+ DebugFlag('I8259', 'Accesses to the I8259 PIC devices')
SimObject('I8254.py')
Source('i8254.cc')
- TraceFlag('I8254', 'Interrupts from the I8254 timer');
+ DebugFlag('I8254', 'Interrupts from the I8254 timer');
SimObject('I8237.py')
Source('i8237.cc')
- TraceFlag('I8237', 'The I8237 dma controller');
+ DebugFlag('I8237', 'The I8237 dma controller');
SimObject('I8042.py')
Source('i8042.cc')
- TraceFlag('I8042', 'The I8042 keyboard controller');
+ DebugFlag('I8042', 'The I8042 keyboard controller');
SimObject('PcSpeaker.py')
Source('speaker.cc')
- TraceFlag('PcSpeaker')
+ DebugFlag('PcSpeaker')
SimObject('I82094AA.py')
Source('i82094aa.cc')
- TraceFlag('I82094AA')
+ DebugFlag('I82094AA')
SimObject('X86IntPin.py')
Source('intdev.cc')
- TraceFlag('IntDev')
+ DebugFlag('IntDev')
Source('kernel_stats.cc')
Source('system_events.cc')
- TraceFlag('DebugPrintf')
- TraceFlag('Printf')
+ DebugFlag('DebugPrintf')
+ DebugFlag('Printf')
Source('linux/events.cc')
Source('linux/linux_syscalls.cc')
Source('tru64/printf.cc')
Source('tru64/tru64_events.cc')
Source('tru64/tru64_syscalls.cc')
- TraceFlag('BADADDR')
+ DebugFlag('BADADDR')
else:
Source('linux/linux.cc')
Source('operatingsystem.cc')
Source('page_table.cc')
Source('translating_port.cc')
-TraceFlag('Bus')
-TraceFlag('BusAddrRanges')
-TraceFlag('BusBridge')
-TraceFlag('LLSC')
-TraceFlag('MMU')
-TraceFlag('MemoryAccess')
+DebugFlag('Bus')
+DebugFlag('BusAddrRanges')
+DebugFlag('BusBridge')
+DebugFlag('LLSC')
+DebugFlag('MMU')
+DebugFlag('MemoryAccess')
-TraceFlag('ProtocolTrace')
-TraceFlag('RubyCache')
-TraceFlag('RubyDma')
-TraceFlag('RubyGenerated')
-TraceFlag('RubyMemory')
-TraceFlag('RubyNetwork')
-TraceFlag('RubyPort')
-TraceFlag('RubyQueue')
-TraceFlag('RubySlicc')
-TraceFlag('RubyStorebuffer')
-TraceFlag('RubyTester')
+DebugFlag('ProtocolTrace')
+DebugFlag('RubyCache')
+DebugFlag('RubyDma')
+DebugFlag('RubyGenerated')
+DebugFlag('RubyMemory')
+DebugFlag('RubyNetwork')
+DebugFlag('RubyPort')
+DebugFlag('RubyQueue')
+DebugFlag('RubySlicc')
+DebugFlag('RubyStorebuffer')
+DebugFlag('RubyTester')
CompoundFlag('Ruby', [ 'RubyQueue', 'RubyNetwork', 'RubyTester',
'RubyGenerated', 'RubySlicc', 'RubyStorebuffer', 'RubyCache',
Source('mshr.cc')
Source('mshr_queue.cc')
-TraceFlag('Cache')
-TraceFlag('CachePort')
-TraceFlag('CacheRepl')
-TraceFlag('HWPrefetch')
+DebugFlag('Cache')
+DebugFlag('CachePort')
+DebugFlag('CacheRepl')
+DebugFlag('HWPrefetch')
SimObject('iic_repl/Repl.py')
Source('iic_repl/gen.cc')
-TraceFlag('IIC')
-TraceFlag('IICMore')
+DebugFlag('IIC')
+DebugFlag('IICMore')
Source('process.cc')
Source('syscall_emul.cc')
-TraceFlag('Checkpoint')
-TraceFlag('Config')
-TraceFlag('Event')
-TraceFlag('Fault')
-TraceFlag('Flow')
-TraceFlag('IPI')
-TraceFlag('IPR')
-TraceFlag('Interrupt')
-TraceFlag('Loader')
-TraceFlag('Stack')
-TraceFlag('SyscallVerbose')
-TraceFlag('TimeSync')
-TraceFlag('TLB')
-TraceFlag('Thread')
-TraceFlag('Timer')
-TraceFlag('VtoPhys')
-TraceFlag('WorkItems')
+DebugFlag('Checkpoint')
+DebugFlag('Config')
+DebugFlag('Event')
+DebugFlag('Fault')
+DebugFlag('Flow')
+DebugFlag('IPI')
+DebugFlag('IPR')
+DebugFlag('Interrupt')
+DebugFlag('Loader')
+DebugFlag('Stack')
+DebugFlag('SyscallVerbose')
+DebugFlag('TimeSync')
+DebugFlag('TLB')
+DebugFlag('Thread')
+DebugFlag('Timer')
+DebugFlag('VtoPhys')
+DebugFlag('WorkItems')