diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-02-01 00:24:26 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-02-01 00:24:26 -0800 |
commit | 18f6c183232ad896b4073002e1a2b9970f77dbea (patch) | |
tree | 07cba572cc1e9d20c04ae3567d2740a36e2953a5 | |
parent | 01679bb416f288057f81acc1cc6dac17415cfcb8 (diff) | |
download | gem5-18f6c183232ad896b4073002e1a2b9970f77dbea.tar.xz |
X86: Hook in a hard drive image.
-rw-r--r-- | configs/common/FSConfig.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configs/common/FSConfig.py b/configs/common/FSConfig.py index a3d5bd0ed..3d1c9bd9e 100644 --- a/configs/common/FSConfig.py +++ b/configs/common/FSConfig.py @@ -166,6 +166,7 @@ def makeX86System(mem_mode, mdesc = None, self = None): if not mdesc: # generic system mdesc = SysConfig() + mdesc.diskname = 'x86root.img' self.readfile = mdesc.script() # Physical memory @@ -185,6 +186,13 @@ def makeX86System(mem_mode, mdesc = None, self = None): self.intrctrl = IntrControl() + # Disks + disk0 = CowIdeDisk(driveID='master') + disk2 = CowIdeDisk(driveID='master') + disk0.childImage(mdesc.disk()) + disk2.childImage(disk('linux-bigswap2.img')) + self.pc.south_bridge.ide.disks = [disk0, disk2] + # Add in a Bios information structure. structures = [X86SMBiosBiosInformation()] self.smbios_table.structures = structures |