summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2011-02-08 15:52:44 -0800
committerBrad Beckmann <Brad.Beckmann@amd.com>2011-02-08 15:52:44 -0800
commit6ebd7c390bd36129b092b115b5ddd0933634902f (patch)
tree1016554bd1864d296f9e2d6a54bb8e6c182dc6a5 /configs
parent488280e48b5f227b2eb35df5d6daba2ae94a1de6 (diff)
downloadgem5-6ebd7c390bd36129b092b115b5ddd0933634902f.tar.xz
config: fixed minor bug connecting dma devices to ruby
Diffstat (limited to 'configs')
-rw-r--r--configs/common/FSConfig.py3
-rw-r--r--configs/example/ruby_fs.py12
2 files changed, 8 insertions, 7 deletions
diff --git a/configs/common/FSConfig.py b/configs/common/FSConfig.py
index 44ac104b5..9e5fd3a0b 100644
--- a/configs/common/FSConfig.py
+++ b/configs/common/FSConfig.py
@@ -334,6 +334,9 @@ def makeX86System(mem_mode, numCPUs = 1, mdesc = None, self = None, Ruby = False
# Create and connect the busses required by each memory system
if Ruby:
connectX86RubySystem(self)
+ # add the ide to the list of dma devices that later need to attach to
+ # dma controllers
+ self._dma_devices = [self.pc.south_bridge.ide]
else:
connectX86ClassicSystem(self)
diff --git a/configs/example/ruby_fs.py b/configs/example/ruby_fs.py
index adc8e6147..2081a10c4 100644
--- a/configs/example/ruby_fs.py
+++ b/configs/example/ruby_fs.py
@@ -111,19 +111,17 @@ CPUClass.clock = options.clock
if buildEnv['TARGET_ISA'] == "alpha":
system = makeLinuxAlphaRubySystem(test_mem_mode, bm[0])
- system.ruby = Ruby.create_system(options,
- system,
- system.piobus,
- system.dma_devices)
elif buildEnv['TARGET_ISA'] == "x86":
system = makeLinuxX86System(test_mem_mode, options.num_cpus, bm[0], True)
setWorkCountOptions(system, options)
- system.ruby = Ruby.create_system(options,
- system,
- system.piobus)
else:
fatal("incapable of building non-alpha or non-x86 full system!")
+system.ruby = Ruby.create_system(options,
+ system,
+ system.piobus,
+ system._dma_devices)
+
system.cpu = [CPUClass(cpu_id=i) for i in xrange(options.num_cpus)]
for (i, cpu) in enumerate(system.cpu):