Support for CPU aliases were removed recently.
Change-Id: I3c1173dc34170d8639d95e52bf660f248848f77f
Reviewed-on: https://gem5-review.googlesource.com/3100
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
if options.external_memory_system:
ExternalCache = ExternalCacheFactory(options.external_memory_system)
- if options.cpu_type == "arm_detailed":
+ if options.cpu_type == "O3_ARM_v7a_3":
try:
from O3_ARM_v7a import *
except:
fatal("GPU model requires ruby")
# Currently the gpu model requires only timing or detailed CPU
-if not (options.cpu_type == "timing" or
- options.cpu_type == "detailed"):
- fatal("GPU model requires timing or detailed CPU")
+if not (options.cpu_type == "TimingSimpleCPU" or
+ options.cpu_type == "DerivO3CPU"):
+ fatal("GPU model requires TimingSimpleCPU or DerivO3CPU")
# This file can support multiple compute units
assert(options.num_compute_units >= 1)
numThreads = 1
-if options.cpu_type != "trace":
+if options.cpu_type != "TraceCPU":
fatal("This is a script for elastic trace replay simulation, use "\
- "--cpu-type=trace\n");
+ "--cpu-type=TraceCPU\n");
if options.num_cpus > 1:
fatal("This script does not support multi-processor trace replay.\n")
if options.ruby:
# Check for timing mode because ruby does not support atomic accesses
- if not (options.cpu_type == "detailed" or options.cpu_type == "timing"):
+ if not (options.cpu_type == "DerivO3CPU" or
+ options.cpu_type == "TimingSimpleCPU"):
print >> sys.stderr, "Ruby requires TimingSimpleCPU or O3CPU!!"
sys.exit(1)
idx += 1
if options.smt:
- assert(options.cpu_type == "detailed")
+ assert(options.cpu_type == "DerivO3CPU")
return multiprocesses, idx
else:
return multiprocesses, 1
def define_options(parser):
# By default, ruby uses the simple timing cpu
- parser.set_defaults(cpu_type="timing")
+ parser.set_defaults(cpu_type="TimingSimpleCPU")
parser.add_option("--topology", type="string", default="Crossbar",
help="check configs/topologies for complete set")
def define_options(parser):
# By default, ruby uses the simple timing cpu
- parser.set_defaults(cpu_type="timing")
+ parser.set_defaults(cpu_type="TimingSimpleCPU")
parser.add_option("--ruby-clock", action="store", type="string",
default='2GHz',
# currently, 2 scenarios warrant forwarding evictions to the CPU:
# 1. The O3 model must keep the LSQ coherent with the caches
# 2. The x86 mwait instruction is built on top of coherence invalidations
- if options.cpu_type == "detailed" or buildEnv['TARGET_ISA'] == 'x86':
+ if options.cpu_type == "DerivO3CPU" or buildEnv['TARGET_ISA'] == 'x86':
return True
return False