changeset b31580e27d1f in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=b31580e27d1f
description:
cpu: Add ExecFlags debug flag
Adds a debug flag to print out the flags a instruction is tagged with.
diffstat:
src/cpu/SConscript | 3 ++-
src/cpu/exetrace.cc | 6 ++++++
2 files changed, 8 insertions(+), 1 deletions(-)
diffs (36 lines):
diff -r 452a5f178ec5 -r b31580e27d1f src/cpu/SConscript
--- a/src/cpu/SConscript Sat Sep 20 17:17:44 2014 -0400
+++ b/src/cpu/SConscript Sat Sep 20 17:17:45 2014 -0400
@@ -96,6 +96,7 @@
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 @@
'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' ])
diff -r 452a5f178ec5 -r b31580e27d1f src/cpu/exetrace.cc
--- a/src/cpu/exetrace.cc Sat Sep 20 17:17:44 2014 -0400
+++ b/src/cpu/exetrace.cc Sat Sep 20 17:17:45 2014 -0400
@@ -131,6 +131,12 @@
if (Debug::ExecCPSeq && cp_seq_valid)
outs << " CPSeq=" << dec << cp_seq;
+
+ if (Debug::ExecFlags) {
+ outs << " flags=(";
+ inst->printFlags(outs, "|");
+ outs << ")";
+ }
}
//
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev