From: Gabe Black Date: Sun, 28 Apr 2019 02:11:26 +0000 (-0700) Subject: cpu: Include debug flags regardless of whether the ISA is null. X-Git-Tag: v19.0.0.0~921 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4d7473c4c3066eb85cd411d872eddf2991cf221;p=gem5.git cpu: Include debug flags regardless of whether the ISA is null. Whether debug flags are available has no interaction with what the ISA is. Change-Id: I71d9204f948618831796e6c7a4c16bbebfb1a4fb Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18428 Reviewed-by: Andreas Sandberg Reviewed-by: Jason Lowe-Power Maintainer: Andreas Sandberg Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/cpu/SConscript b/src/cpu/SConscript index 656d9f1db..a8585a797 100644 --- a/src/cpu/SConscript +++ b/src/cpu/SConscript @@ -30,6 +30,48 @@ Import('*') +DebugFlag('Activity') +DebugFlag('Commit') +DebugFlag('Context') +DebugFlag('Decode') +DebugFlag('DynInst') +DebugFlag('ExecEnable', + 'Filter: Enable exec tracing (no tracing without this)') +DebugFlag('ExecCPSeq', 'Format: Instruction sequence number') +DebugFlag('ExecEffAddr', 'Format: Include effective address') +DebugFlag('ExecFaulting', 'Trace faulting instructions') +DebugFlag('ExecFetchSeq', 'Format: Fetch sequence number') +DebugFlag('ExecOpClass', 'Format: Include operand class') +DebugFlag('ExecRegDelta') +DebugFlag('ExecResult', 'Format: Include results from execution') +DebugFlag('ExecSymbol', 'Format: Try to include symbol names') +DebugFlag('ExecThread', 'Format: Include thread ID in trace') +DebugFlag('ExecTicks', 'Format: Include tick count') +DebugFlag('ExecMicro', 'Filter: Include microops') +DebugFlag('ExecMacro', 'Filter: Include macroops') +DebugFlag('ExecUser', 'Filter: Trace user mode instructions') +DebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions') +DebugFlag('ExecAsid', 'Format: Include ASID in trace') +DebugFlag('ExecFlags', 'Format: Include instruction flags in trace') +DebugFlag('Fetch') +DebugFlag('IntrControl') +DebugFlag('O3PipeView') +DebugFlag('PCEvent') +DebugFlag('Quiesce') +DebugFlag('Mwait') + +CompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr', + 'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta', + 'ExecResult', 'ExecSymbol', 'ExecThread', + 'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel', + 'ExecAsid', 'ExecFlags' ]) +CompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread', + 'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecMacro', + 'ExecFaulting', 'ExecUser', 'ExecKernel' ]) +CompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread', + 'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecMacro', 'ExecFaulting', + 'ExecUser', 'ExecKernel' ]) + if env['TARGET_ISA'] == 'null': SimObject('IntrControl.py') Source('intr_control_noisa.cc') @@ -72,44 +114,3 @@ SimObject('StaticInstFlags.py') Source('checker/cpu.cc') Source('dummy_checker.cc') DebugFlag('Checker') - -DebugFlag('Activity') -DebugFlag('Commit') -DebugFlag('Context') -DebugFlag('Decode') -DebugFlag('DynInst') -DebugFlag('ExecEnable', 'Filter: Enable exec tracing (no tracing without this)') -DebugFlag('ExecCPSeq', 'Format: Instruction sequence number') -DebugFlag('ExecEffAddr', 'Format: Include effective address') -DebugFlag('ExecFaulting', 'Trace faulting instructions') -DebugFlag('ExecFetchSeq', 'Format: Fetch sequence number') -DebugFlag('ExecOpClass', 'Format: Include operand class') -DebugFlag('ExecRegDelta') -DebugFlag('ExecResult', 'Format: Include results from execution') -DebugFlag('ExecSymbol', 'Format: Try to include symbol names') -DebugFlag('ExecThread', 'Format: Include thread ID in trace') -DebugFlag('ExecTicks', 'Format: Include tick count') -DebugFlag('ExecMicro', 'Filter: Include microops') -DebugFlag('ExecMacro', 'Filter: Include macroops') -DebugFlag('ExecUser', 'Filter: Trace user mode instructions') -DebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions') -DebugFlag('ExecAsid', 'Format: Include ASID in trace') -DebugFlag('ExecFlags', 'Format: Include instruction flags in trace') -DebugFlag('Fetch') -DebugFlag('IntrControl') -DebugFlag('O3PipeView') -DebugFlag('PCEvent') -DebugFlag('Quiesce') -DebugFlag('Mwait') - -CompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr', - 'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta', - 'ExecResult', 'ExecSymbol', 'ExecThread', - 'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel', - 'ExecAsid', 'ExecFlags' ]) -CompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread', - 'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecMacro', - 'ExecFaulting', 'ExecUser', 'ExecKernel' ]) -CompoundFlag('ExecNoTicks', [ 'ExecEnable', 'ExecOpClass', 'ExecThread', - 'ExecEffAddr', 'ExecResult', 'ExecMicro', 'ExecMacro', 'ExecFaulting', - 'ExecUser', 'ExecKernel' ])