Minor tweaks for future Ruby compatibility.
authorSteve Reinhardt <steve.reinhardt@amd.com>
Tue, 21 Apr 2009 15:17:36 +0000 (08:17 -0700)
committerSteve Reinhardt <steve.reinhardt@amd.com>
Tue, 21 Apr 2009 15:17:36 +0000 (08:17 -0700)
configs/common/Simulation.py
src/mem/physical.hh

index a771710fa8e50170b0ac4a70657b7db884ae3fa9..0004e4fe632418ce8a65431dbf5bc415b554b856 100644 (file)
@@ -31,7 +31,6 @@ from os.path import join as joinpath
 import m5
 from m5.objects import *
 m5.AddToPath('../common')
-from Caches import L1Cache
 
 def setCPUClass(options):
 
@@ -151,9 +150,8 @@ def run(options, root, testsys, cpu_class):
 
             if not options.caches:
                 # O3 CPU must have a cache to work.
-                switch_cpus_1[i].addPrivateSplitL1Caches(L1Cache(size = '32kB'),
-                                                         L1Cache(size = '64kB'))
-                switch_cpus_1[i].connectMemPorts(testsys.membus)
+                print "O3 CPU must be used with caches"
+                sys.exit(1)
 
             testsys.switch_cpus = switch_cpus
             testsys.switch_cpus_1 = switch_cpus_1
index 8dbadccc4bb9272647e838399a25fc89cad53601..f027168a4b612dc6c4d541fc1f10a79c7d925f46 100644 (file)
@@ -49,6 +49,8 @@
 //
 class PhysicalMemory : public MemObject
 {
+  protected:
+
     class MemoryPort : public SimpleTimingPort
     {
         PhysicalMemory *memory;