cpu: Add ExecFlags debug flag
Adds a debug flag to print out the flags a instruction is tagged with.
This commit is contained in:
parent
3e5bf0c922
commit
4f0e3cd4d7
2 changed files with 8 additions and 1 deletions
|
@ -96,6 +96,7 @@ 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')
|
||||
|
@ -106,7 +107,7 @@ CompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
|
|||
'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
|
||||
'ExecResult', 'ExecSpeculative', 'ExecSymbol', 'ExecThread',
|
||||
'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
|
||||
'ExecAsid' ])
|
||||
'ExecAsid', 'ExecFlags' ])
|
||||
CompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread',
|
||||
'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecFaulting',
|
||||
'ExecUser', 'ExecKernel' ])
|
||||
|
|
|
@ -131,6 +131,12 @@ Trace::ExeTracerRecord::traceInst(StaticInstPtr inst, bool ran)
|
|||
|
||||
if (Debug::ExecCPSeq && cp_seq_valid)
|
||||
outs << " CPSeq=" << dec << cp_seq;
|
||||
|
||||
if (Debug::ExecFlags) {
|
||||
outs << " flags=(";
|
||||
inst->printFlags(outs, "|");
|
||||
outs << ")";
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue