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
|
@ -96,6 +96,7 @@ DebugFlag('ExecMacro', 'Filter: Include macroops')
|
||||||
DebugFlag('ExecUser', 'Filter: Trace user mode instructions')
|
DebugFlag('ExecUser', 'Filter: Trace user mode instructions')
|
||||||
DebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions')
|
DebugFlag('ExecKernel', 'Filter: Trace kernel mode instructions')
|
||||||
DebugFlag('ExecAsid', 'Format: Include ASID in trace')
|
DebugFlag('ExecAsid', 'Format: Include ASID in trace')
|
||||||
|
DebugFlag('ExecFlags', 'Format: Include instruction flags in trace')
|
||||||
DebugFlag('Fetch')
|
DebugFlag('Fetch')
|
||||||
DebugFlag('IntrControl')
|
DebugFlag('IntrControl')
|
||||||
DebugFlag('O3PipeView')
|
DebugFlag('O3PipeView')
|
||||||
|
@ -106,7 +107,7 @@ CompoundFlag('ExecAll', [ 'ExecEnable', 'ExecCPSeq', 'ExecEffAddr',
|
||||||
'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
|
'ExecFaulting', 'ExecFetchSeq', 'ExecOpClass', 'ExecRegDelta',
|
||||||
'ExecResult', 'ExecSpeculative', 'ExecSymbol', 'ExecThread',
|
'ExecResult', 'ExecSpeculative', 'ExecSymbol', 'ExecThread',
|
||||||
'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
|
'ExecTicks', 'ExecMicro', 'ExecMacro', 'ExecUser', 'ExecKernel',
|
||||||
'ExecAsid' ])
|
'ExecAsid', 'ExecFlags' ])
|
||||||
CompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread',
|
CompoundFlag('Exec', [ 'ExecEnable', 'ExecTicks', 'ExecOpClass', 'ExecThread',
|
||||||
'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecFaulting',
|
'ExecEffAddr', 'ExecResult', 'ExecSymbol', 'ExecMicro', 'ExecFaulting',
|
||||||
'ExecUser', 'ExecKernel' ])
|
'ExecUser', 'ExecKernel' ])
|
||||||
|
|
|
@ -131,6 +131,12 @@ Trace::ExeTracerRecord::traceInst(StaticInstPtr inst, bool ran)
|
||||||
|
|
||||||
if (Debug::ExecCPSeq && cp_seq_valid)
|
if (Debug::ExecCPSeq && cp_seq_valid)
|
||||||
outs << " CPSeq=" << dec << cp_seq;
|
outs << " CPSeq=" << dec << cp_seq;
|
||||||
|
|
||||||
|
if (Debug::ExecFlags) {
|
||||||
|
outs << " flags=(";
|
||||||
|
inst->printFlags(outs, "|");
|
||||||
|
outs << ")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue