slicc: remove check if the L1Cache has a sequencer
authorNilay Vaish <nilay@cs.wisc.edu>
Fri, 22 Mar 2013 20:53:24 +0000 (15:53 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Fri, 22 Mar 2013 20:53:24 +0000 (15:53 -0500)
src/mem/slicc/symbols/StateMachine.py

index 3618563fdbe17d2f74467ee804453b59cc09138e..4a33d78bab4b4bd5dc570dc4c166a72bbcc3b22f 100644 (file)
@@ -482,19 +482,8 @@ $c_ident::$c_ident(const Params *p)
         # For the l1 cache controller, add the special atomic support which 
         # includes passing the sequencer a pointer to the controller.
         #
-        if self.ident == "L1Cache":
-            if not sequencers:
-                self.error("The L1Cache controller must include the sequencer " \
-                           "configuration parameter")
-
-            for seq in sequencers:
-                code('''
-m_${{seq}}_ptr->setController(this);
-    ''')
-
-        else:
-            for seq in sequencers:
-                code('''
+        for seq in sequencers:
+            code('''
 m_${{seq}}_ptr->setController(this);
     ''')