Minor tweaks for future Ruby compatibility.
This commit is contained in:
parent
eb3b6935d3
commit
97b6947eb7
2 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,6 @@ from os.path import join as joinpath
|
||||||
import m5
|
import m5
|
||||||
from m5.objects import *
|
from m5.objects import *
|
||||||
m5.AddToPath('../common')
|
m5.AddToPath('../common')
|
||||||
from Caches import L1Cache
|
|
||||||
|
|
||||||
def setCPUClass(options):
|
def setCPUClass(options):
|
||||||
|
|
||||||
|
@ -151,9 +150,8 @@ def run(options, root, testsys, cpu_class):
|
||||||
|
|
||||||
if not options.caches:
|
if not options.caches:
|
||||||
# O3 CPU must have a cache to work.
|
# O3 CPU must have a cache to work.
|
||||||
switch_cpus_1[i].addPrivateSplitL1Caches(L1Cache(size = '32kB'),
|
print "O3 CPU must be used with caches"
|
||||||
L1Cache(size = '64kB'))
|
sys.exit(1)
|
||||||
switch_cpus_1[i].connectMemPorts(testsys.membus)
|
|
||||||
|
|
||||||
testsys.switch_cpus = switch_cpus
|
testsys.switch_cpus = switch_cpus
|
||||||
testsys.switch_cpus_1 = switch_cpus_1
|
testsys.switch_cpus_1 = switch_cpus_1
|
||||||
|
|
|
@ -49,6 +49,8 @@
|
||||||
//
|
//
|
||||||
class PhysicalMemory : public MemObject
|
class PhysicalMemory : public MemObject
|
||||||
{
|
{
|
||||||
|
protected:
|
||||||
|
|
||||||
class MemoryPort : public SimpleTimingPort
|
class MemoryPort : public SimpleTimingPort
|
||||||
{
|
{
|
||||||
PhysicalMemory *memory;
|
PhysicalMemory *memory;
|
||||||
|
|
Loading…
Reference in a new issue