Ruby: Fix dma controller configs/ruby/MI_example.py
authorNilay Vaish <nilay@cs.wisc.edu>
Mon, 25 Jul 2011 23:18:31 +0000 (18:18 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Mon, 25 Jul 2011 23:18:31 +0000 (18:18 -0500)
The dma controller in configs/ruby/MI_example.py was not being set correctly.
This patch fixes it.

configs/ruby/MI_example.py

index 4ea5e599344b6fcadc251f29a2e5d942d82d7c64..fcee35f00671eaac7f60a4631dae15de24ae6013 100644 (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)