summaryrefslogtreecommitdiff
path: root/src/cpu/trace/TraceCPU.py
diff options
context:
space:
mode:
authorRadhika Jagtap <radhika.jagtap@arm.com>2016-08-16 14:14:58 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-03-16 13:52:40 +0000
commit48333e7e3f5282bd2b5505b400ad5b06d6785371 (patch)
treeee2e811cb2d94ad4771cfed2aa2f3ada13cdbfbf /src/cpu/trace/TraceCPU.py
parente2805f825a7983fdc1cf802ad2935b89e4d7ec8f (diff)
downloadgem5-48333e7e3f5282bd2b5505b400ad5b06d6785371.tar.xz
cpu: Print progress messages in Trace CPU
This change adds the ability to print a message at intervals of committed instruction count to indicate progress in the trace replay. Change-Id: I8363502354c42bfc52936d2627986598b63a5797 Reviewed-by: Rekai Gonzalez Alberquilla <rekai.gonzalezalberquilla@arm.com> Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/2321 Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/cpu/trace/TraceCPU.py')
-rw-r--r--src/cpu/trace/TraceCPU.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cpu/trace/TraceCPU.py b/src/cpu/trace/TraceCPU.py
index 3ec5795e3..e108b1a50 100644
--- a/src/cpu/trace/TraceCPU.py
+++ b/src/cpu/trace/TraceCPU.py
@@ -80,3 +80,10 @@ class TraceCPU(BaseCPU):
# false by default
enableEarlyExit = Param.Bool(False, "Exit when any one Trace CPU "\
"completes execution")
+
+ # If progress msg interval is set to a non-zero value, it is treated as
+ # the interval of committed instructions at which an info message is
+ # printed.
+ progressMsgInterval = Param.Unsigned(0, "Interval of committed "\
+ "instructions at which to print a"\
+ " progress msg")