Lines Matching refs:action

110     def addAction(self, action):
113 # Check for duplicate action
115 if action.ident == other.ident:
116 action.warning("Duplicate action definition: %s" % action.ident)
117 action.error("Duplicate action definition: %s" % action.ident)
118 if action.short == other.short:
119 other.warning("Duplicate action shorthand: %s" % other.ident)
121 action.warning("Duplicate action shorthand: %s" % action.ident)
122 action.error(" shorthand = %s" % action.short)
124 self.actions[action.ident] = action
179 for action in trans.actions:
180 action.used = True
189 for action in self.actions.itervalues():
190 if not action.used:
191 error_msg = "Unused action: %s" % action.ident
192 if "desc" in action:
193 error_msg += ", " + action.desc
194 action.warning(error_msg)
405 for action in self.actions.itervalues():
406 code('/** \\brief ${{action.desc}} */')
407 code('void ${{action.ident}}(${{self.TBEType.c_ident}}*& '
411 for action in self.actions.itervalues():
412 code('/** \\brief ${{action.desc}} */')
413 code('void ${{action.ident}}(${{self.TBEType.c_ident}}*& '
416 for action in self.actions.itervalues():
417 code('/** \\brief ${{action.desc}} */')
418 code('void ${{action.ident}}(${{self.EntryType.c_ident}}*& '
421 for action in self.actions.itervalues():
422 code('/** \\brief ${{action.desc}} */')
423 code('void ${{action.ident}}(Addr addr);')
653 for action in trans.actions:
654 if action.ident == "z_stall":
940 for action in self.actions.itervalues():
941 if "c_code" not in action:
945 /** \\brief ${{action.desc}} */
947 $c_ident::${{action.ident}}(${{self.TBEType.c_ident}}*& m_tbe_ptr, ${{self.EntryType.c_ident}}*& m_cache_entry_ptr, Addr addr)
949 DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n");
951 ${{action["c_code"]}}
953 fatal("Error in action ${{ident}}:${{action.ident}}: "
961 for action in self.actions.itervalues():
962 if "c_code" not in action:
966 /** \\brief ${{action.desc}} */
968 $c_ident::${{action.ident}}(${{self.TBEType.c_ident}}*& m_tbe_ptr, Addr addr)
970 DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n");
971 ${{action["c_code"]}}
976 for action in self.actions.itervalues():
977 if "c_code" not in action:
981 /** \\brief ${{action.desc}} */
983 $c_ident::${{action.ident}}(${{self.EntryType.c_ident}}*& m_cache_entry_ptr, Addr addr)
985 DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n");
986 ${{action["c_code"]}}
991 for action in self.actions.itervalues():
992 if "c_code" not in action:
996 /** \\brief ${{action.desc}} */
998 $c_ident::${{action.ident}}(Addr addr)
1000 DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n");
1001 ${{action["c_code"]}}
1361 for action in actions:
1362 if action.ident == "z_stall":
1370 for action in actions:
1371 case('${{action.ident}}(m_tbe_ptr, m_cache_entry_ptr, addr);')
1373 for action in actions:
1374 case('${{action.ident}}(m_tbe_ptr, addr);')
1376 for action in actions:
1377 case('${{action.ident}}(m_cache_entry_ptr, addr);')
1379 for action in actions:
1380 case('${{action.ident}}(addr);')
1434 # Generate action descriptions
1435 for action in self.actions.itervalues():
1436 name = "%s_action_%s.html" % (self.ident, action.ident)
1437 code = html.createSymbol(action, "Action")
1522 for action in trans.actions:
1523 if action.ident == "z_stall" or \
1524 action.ident == "zz_recycleMandatoryQueue":
1542 for action in trans.actions:
1543 href = "%s_action_%s.html" % (self.ident, action.ident)
1545 action.short)