configs: Fix CPUClass typo in se.py
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Tue, 9 Oct 2018 09:27:08 +0000 (11:27 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Tue, 9 Oct 2018 17:25:05 +0000 (17:25 +0000)
Change 719eb033fe435133abf15501c249eec10d1c861f added a typo
to se.py that breaks simpoint simulation, which generates the
following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/daniel/gem5/src/python/m5/main.py", line 435, in main
    exec filecode in scope
  File "./configs/example/se.py", line 217, in <module>
    if not CpuConfig.is_atomic_cpu(TestCPUClass):
NameError: name 'TestCPUClass' is not defined

Change-Id: Ideede8c96a40ee16af733c3d57b02b64f1a18d12
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/13267
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>

configs/example/se.py

index 804ef02c5eb35aef6cfee3ea67317ca145f27220..f12d4a99451273f16a3e96c062cd2cfb1b9f8829 100644 (file)
@@ -214,7 +214,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(TestCPUClass):
+    if not CpuConfig.is_atomic_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")