summaryrefslogtreecommitdiff
path: root/configs/common/FSConfig.py
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-08-15 19:12:19 -0400
committerAli Saidi <saidi@eecs.umich.edu>2006-08-15 19:12:19 -0400
commitde29f555c4e4a606d53b87ce5299862e37905d58 (patch)
tree0813718836dda179366c93a98df676146b81d391 /configs/common/FSConfig.py
parent4c3e01bd906a7be2b7c73515c8f0f00be1276a70 (diff)
downloadgem5-de29f555c4e4a606d53b87ce5299862e37905d58.tar.xz
implement benchmark selection code
--HG-- extra : convert_revision : 84632fdad7019e177e61c56ae30ea2f3fdbc0995
Diffstat (limited to 'configs/common/FSConfig.py')
-rw-r--r--configs/common/FSConfig.py24
1 files changed, 11 insertions, 13 deletions
diff --git a/configs/common/FSConfig.py b/configs/common/FSConfig.py
index d17a354af..c6ad8ce48 100644
--- a/configs/common/FSConfig.py
+++ b/configs/common/FSConfig.py
@@ -29,13 +29,10 @@
import m5
from m5 import makeList
from m5.objects import *
+from Benchmarks import *
from FullO3Config import *
-from SysPaths import *
from Util import *
-script.dir = '/z/saidi/work/m5.newmem/configs/boot'
-linux_image = env.get('LINUX_IMAGE', disk('linux-latest.img'))
-
class CowIdeDisk(IdeDisk):
image = CowDiskImage(child=RawDiskImage(read_only=True),
read_only=False)
@@ -50,18 +47,19 @@ class BaseTsunami(Tsunami):
ide = IdeController(disks=[Parent.disk0, Parent.disk2],
pci_func=0, pci_dev=0, pci_bus=0)
-def makeLinuxAlphaSystem(cpu, mem_mode, linux_image, icache=None, dcache=None, l2cache=None):
+def makeLinuxAlphaSystem(cpu, mem_mode, mdesc, icache=None, dcache=None, l2cache=None):
self = LinuxAlphaSystem()
+ self.readfile = mdesc.script()
self.iobus = Bus(bus_id=0)
self.membus = Bus(bus_id=1)
self.bridge = Bridge()
- self.physmem = PhysicalMemory(range = AddrRange('128MB'))
+ self.physmem = PhysicalMemory(range = AddrRange(mdesc.mem()))
self.bridge.side_a = self.iobus.port
self.bridge.side_b = self.membus.port
self.physmem.port = self.membus.port
self.disk0 = CowIdeDisk(driveID='master')
self.disk2 = CowIdeDisk(driveID='master')
- self.disk0.childImage(linux_image)
+ self.disk0.childImage(mdesc.disk())
self.disk2.childImage(disk('linux-bigswap2.img'))
self.tsunami = BaseTsunami()
self.tsunami.attachIO(self.iobus)
@@ -71,7 +69,7 @@ def makeLinuxAlphaSystem(cpu, mem_mode, linux_image, icache=None, dcache=None, l
self.tsunami.ethernet.pio = self.iobus.port
self.tsunami.ethernet.dma = self.iobus.port
self.tsunami.ethernet.config = self.iobus.port
- self.simple_disk = SimpleDisk(disk=RawDiskImage(image_file = linux_image,
+ self.simple_disk = SimpleDisk(disk=RawDiskImage(image_file = mdesc.disk(),
read_only = True))
self.intrctrl = IntrControl()
self.cpu = cpu
@@ -89,14 +87,14 @@ def makeLinuxAlphaSystem(cpu, mem_mode, linux_image, icache=None, dcache=None, l
return self
-def makeDualRoot(clientSystem, serverSystem):
+def makeDualRoot(testSystem, driveSystem):
self = Root()
- self.client = clientSystem
- self.server = serverSystem
+ self.testsys = testSystem
+ self.drivesys = driveSystem
self.etherdump = EtherDump(file='ethertrace')
- self.etherlink = EtherLink(int1 = Parent.client.tsunami.etherint[0],
- int2 = Parent.server.tsunami.etherint[0],
+ self.etherlink = EtherLink(int1 = Parent.testsys.tsunami.etherint[0],
+ int2 = Parent.drivesys.tsunami.etherint[0],
dump = Parent.etherdump)
self.clock = '1THz'
return self