summaryrefslogtreecommitdiff
path: root/configs/common/FSConfig.py
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2007-01-11 09:48:15 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2007-01-11 09:48:15 -0500
commit5c9cbdbb4597a3ba6908a41c1dc459c25626e514 (patch)
tree1bc33a9661ecc1dd4538ee10183ef809488830f2 /configs/common/FSConfig.py
parent9f75c1c58f8352a8625f035c151ebcf6ce95b908 (diff)
parent42535f5f53ad2515cd4b8e617e4a2322aecac547 (diff)
downloadgem5-5c9cbdbb4597a3ba6908a41c1dc459c25626e514.tar.xz
Merge zed.eecs.umich.edu:/z/hsul/work/sparc/ali.m5
into zed.eecs.umich.edu:/z/hsul/work/sparc/m5 src/arch/sparc/ua2005.cc: hand merge between ali and me. --HG-- extra : convert_revision : 810d63fb484ab26fc30f8130ef32390ba149b267
Diffstat (limited to 'configs/common/FSConfig.py')
-rw-r--r--configs/common/FSConfig.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/configs/common/FSConfig.py b/configs/common/FSConfig.py
index 72742775f..c341b762a 100644
--- a/configs/common/FSConfig.py
+++ b/configs/common/FSConfig.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2006 The Regents of The University of Michigan
+# Copyright (c) 2006-2007 The Regents of The University of Michigan
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -38,6 +38,14 @@ class CowIdeDisk(IdeDisk):
def childImage(self, ci):
self.image.child.image_file = ci
+class CowMmDisk(MmDisk):
+ image = CowDiskImage(child=RawDiskImage(read_only=True),
+ read_only=False)
+
+ def childImage(self, ci):
+ self.image.child.image_file = ci
+
+
class BaseTsunami(Tsunami):
ethernet = NSGigE(configdata=NSGigEPciData(),
pci_bus=0, pci_dev=1, pci_func=0)
@@ -100,8 +108,9 @@ def makeSparcSystem(mem_mode, mdesc = None):
self.hypervisor_desc.port = self.membus.port
self.partition_desc.port = self.membus.port
self.intrctrl = IntrControl()
- self.mem_mode = mem_mode
-
+ self.disk0 = CowMmDisk()
+ self.disk0.childImage(disk('disk.s10hw2'))
+ self.disk0.pio = self.iobus.port
self.reset_bin = binary('reset.bin')
self.hypervisor_bin = binary('q.bin')
self.openboot_bin = binary('openboot.bin')