summaryrefslogtreecommitdiff
path: root/configs/common/Simulation.py
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2019-02-28 17:07:41 +0800
committerIru Cai <mytbk920423@gmail.com>2019-05-31 15:59:08 +0800
commitdf8a5016d82e2c85e96f99eeff30d9a963cecffe (patch)
treed780d3710302c7835e295406df3ff2cd3b4c77e6 /configs/common/Simulation.py
parenta4c6e88d766858b675a7fd256df5a8b9a7e18ada (diff)
downloadgem5-df8a5016d82e2c85e96f99eeff30d9a963cecffe.tar.xz
invisispec-1.0 configs and exp script
import from original code: https://github.com/mjyan0720/InvisiSpec-1.0
Diffstat (limited to 'configs/common/Simulation.py')
-rw-r--r--configs/common/Simulation.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py
index 19bd962e8..9aa49876f 100644
--- a/configs/common/Simulation.py
+++ b/configs/common/Simulation.py
@@ -464,6 +464,14 @@ def run(options, root, testsys, cpu_class):
switch_cpus = [cpu_class(switched_out=True, cpu_id=(i))
for i in xrange(np)]
+ # [InvisiSpec] configure simualtion scheme
+ if cpu_class == DerivO3CPU:
+ #fatal("Ruby can only be used with DerivO3CPU!")
+ CpuConfig.config_scheme(cpu_class, switch_cpus, options)
+ else:
+ warn("restoring from a checkpoint, "
+ "but not simulate using DerivO3CPU.")
+
for i in xrange(np):
if options.fast_forward:
testsys.cpu[i].max_insts_any_thread = int(options.fast_forward)