summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2019-01-24 14:01:59 +0000
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2019-02-13 10:30:55 +0000
commit224f2d50a9873d054f486d7661d947db76f4cf68 (patch)
treed4b5ff991ff77008c873fd17f40a01f3950b3ab6
parente67a3d19b7fabd86d220534302a65ad3b62f751e (diff)
downloadgem5-224f2d50a9873d054f486d7661d947db76f4cf68.tar.xz
configs: simpoint-profile usable with NonCachingCPUs only
NonCachingCPU is replacing the Atomic+fastmem option. Change-Id: I66f5c8a880d1b3fd1331871d89e8d6a229938e57 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/15935 Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
-rw-r--r--configs/common/CpuConfig.py1
-rw-r--r--configs/example/fs.py2
-rw-r--r--configs/example/se.py2
3 files changed, 3 insertions, 2 deletions
diff --git a/configs/common/CpuConfig.py b/configs/common/CpuConfig.py
index f0d009e95..1524b1646 100644
--- a/configs/common/CpuConfig.py
+++ b/configs/common/CpuConfig.py
@@ -70,6 +70,7 @@ def _cpu_subclass_tester(name):
is_kvm_cpu = _cpu_subclass_tester("BaseKvmCPU")
is_atomic_cpu = _cpu_subclass_tester("AtomicSimpleCPU")
+is_noncaching_cpu = _cpu_subclass_tester("NonCachingSimpleCPU")
def get(name):
"""Get a CPU class from a user provided class name or alias."""
diff --git a/configs/example/fs.py b/configs/example/fs.py
index 05eca87fb..6be9ba2c2 100644
--- a/configs/example/fs.py
+++ b/configs/example/fs.py
@@ -189,7 +189,7 @@ def build_test_system(np):
# Sanity check
if options.simpoint_profile:
- if not CpuConfig.is_atomic_cpu(TestCPUClass):
+ if not CpuConfig.is_noncaching_cpu(TestCPUClass):
fatal("SimPoint generation should be done with atomic cpu")
if np > 1:
fatal("SimPoint generation not supported with more than one CPUs")
diff --git a/configs/example/se.py b/configs/example/se.py
index 8403066f0..fa9e89745 100644
--- a/configs/example/se.py
+++ b/configs/example/se.py
@@ -215,7 +215,7 @@ if CpuConfig.is_kvm_cpu(CPUClass) or CpuConfig.is_kvm_cpu(FutureClass):
# Sanity check
if options.simpoint_profile:
- if not CpuConfig.is_atomic_cpu(CPUClass):
+ if not CpuConfig.is_noncaching_cpu(CPUClass):
fatal("SimPoint/BPProbe should be done with an atomic cpu")
if np > 1:
fatal("SimPoint generation not supported with more than one CPUs")