summaryrefslogtreecommitdiff
path: root/configs/common
diff options
context:
space:
mode:
Diffstat (limited to 'configs/common')
-rw-r--r--configs/common/FSConfig.py19
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()