From a4d7473c4c3066eb85cd411d872eddf2991cf221 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 27 Apr 2019 19:11:26 -0700 Subject: [PATCH] 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 --- src/cpu/SConscript | 83 +++++++++++++++++++++++----------------------- 1 file changed, 42 insertions(+), 41 deletions(-) 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' ]) -- 2.30.2