diff options
author | Radhika Jagtap <radhika.jagtap@arm.com> | 2016-09-15 18:01:20 +0100 |
---|---|---|
committer | Radhika Jagtap <radhika.jagtap@arm.com> | 2016-09-15 18:01:20 +0100 |
commit | 1fe5f631376c391d5379e1e6dace8366a48ac1b2 (patch) | |
tree | 6456e1612a94018cc42d55122587e6b9ea6b8bab /src/cpu/trace/TraceCPU.py | |
parent | d067327fc0c1a67ad2d456840e83db7b593b94a0 (diff) | |
download | gem5-1fe5f631376c391d5379e1e6dace8366a48ac1b2.tar.xz |
cpu: Support exit when any one Trace CPU completes replay
This change adds a Trace CPU param to exit simulation early,
i.e. when the first (any one) trace execution is complete. With
this change the user gets a choice to configure exit as either
when the last CPU finishes (default) or first CPU finishes
replay. Configuring an early exit enables simulating and
measuring stats strictly when memory-system resources are being
stressed by all Trace CPUs.
Change-Id: I3998045fdcc5cd343e1ca92d18dd7f7ecdba8f1d
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/cpu/trace/TraceCPU.py')
-rw-r--r-- | src/cpu/trace/TraceCPU.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cpu/trace/TraceCPU.py b/src/cpu/trace/TraceCPU.py index bbce9c0ad..3ec5795e3 100644 --- a/src/cpu/trace/TraceCPU.py +++ b/src/cpu/trace/TraceCPU.py @@ -75,3 +75,8 @@ class TraceCPU(BaseCPU): # frequency as was used for generating the traces. freqMultiplier = Param.Float(1.0, "Multiplier scale the Trace CPU "\ "frequency up or down") + + # Enable exiting when any one Trace CPU completes execution which is set to + # false by default + enableEarlyExit = Param.Bool(False, "Exit when any one Trace CPU "\ + "completes execution") |