slicc: Controllers attached to Sequencers no longer have to be named L1Cache.
authorLisa Hsu <Lisa.Hsu@amd.com>
Fri, 6 Apr 2012 20:47:08 +0000 (13:47 -0700)
committerLisa Hsu <Lisa.Hsu@amd.com>
Fri, 6 Apr 2012 20:47:08 +0000 (13:47 -0700)
src/mem/slicc/symbols/StateMachine.py

index 85df3f9e883c01b9be251d207c6ef8b2e3f7df0f..7d863e349d587f5a0d9356165f7b4dcc16656d69 100644 (file)
@@ -499,6 +499,13 @@ $c_ident::$c_ident(const Params *p)
                 code('''
 m_${{seq}}_ptr->setController(this);
     ''')
+
+        else:
+            for seq in sequencers:
+                code('''
+m_${{seq}}_ptr->setController(this);
+    ''')
+
         #
         # For the DMA controller, pass the sequencer a pointer to the
         # controller.