From 31982a0b92803a9eb4d3479732517ccc9d294f92 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Thu, 28 Feb 2019 17:07:41 +0800 Subject: invisispec-1.0 configs --- configs/common/Simulation.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'configs/common/Simulation.py') diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py index 6df90cb6c..1119d9242 100644 --- a/configs/common/Simulation.py +++ b/configs/common/Simulation.py @@ -463,6 +463,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) -- cgit v1.2.3