Ruby: Fix dma controller configs/ruby/MI_example.py

The dma controller in configs/ruby/MI_example.py was not being set correctly.
This patch fixes it.
This commit is contained in:
Nilay Vaish 2011-07-25 18:18:31 -05:00
parent 145deb7c88
commit ca247a81f0

View file

@ -149,9 +149,9 @@ def create_system(options, system, piobus, dma_devices, ruby_system):
exec("system.dma_cntrl%d = dma_cntrl" % i)
if dma_device.type == 'MemTest':
system.dma_cntrl.dma_sequencer.port = dma_device.test
exec("system.dma_cntrl%d.dma_sequencer.port = dma_device.test" % i)
else:
system.dma_cntrl.dma_sequencer.port = dma_device.dma
exec("system.dma_cntrl%d.dma_sequencer.port = dma_device.dma" % i)
dma_cntrl.dma_sequencer.port = dma_device.dma
dma_cntrl_nodes.append(dma_cntrl)