diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-10-07 17:52:36 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-10-07 17:52:36 -0700 |
commit | 847a18ad48445a3b4f8fa9b8f8c2594a8a952f84 (patch) | |
tree | 093a95a648bacbe0a588a9bc0be921285072321b /configs/common | |
parent | e540c37282467e62ff457fdd39ca2f584fdfd10c (diff) | |
download | gem5-847a18ad48445a3b4f8fa9b8f8c2594a8a952f84.tar.xz |
X86: Adjust the config scripts for x86 fs.
--HG--
extra : convert_revision : 36ed22b50066f54be0e51c3419babc07dd218e10
Diffstat (limited to 'configs/common')
-rw-r--r-- | configs/common/FSConfig.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configs/common/FSConfig.py b/configs/common/FSConfig.py index 2ab214dc5..78be4fc3a 100644 --- a/configs/common/FSConfig.py +++ b/configs/common/FSConfig.py @@ -118,6 +118,25 @@ def makeSparcSystem(mem_mode, mdesc = None): return self +def makeX86System(mem_mode, mdesc = None): + self = X86System() + if not mdesc: + # generic system + mdesc = SysConfig() + self.readfile = mdesc.script() + + # Physical memory + self.membus = Bus(bus_id=0) + self.physmem = PhysicalMemory(range = AddrRange(mdesc.mem())) + self.physmem.port = self.membus.port + + # Platform + self.opteron = Opteron() + + self.intrctrl = IntrControl() + + return self + def makeDualRoot(testSystem, driveSystem, dumpfile): self = Root() |