StateMachine.py (7922:7532067f818e) | StateMachine.py (8055:e1fd27c723a2) |
---|---|
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 869 unchanged lines hidden (view full) --- 878 if "c_code" not in action: 879 continue 880 881 code(''' 882/** \\brief ${{action.desc}} */ 883void 884$c_ident::${{action.ident}}(${{self.TBEType.c_ident}}*& m_tbe_ptr, ${{self.EntryType.c_ident}}*& m_cache_entry_ptr, const Address& addr) 885{ | 1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 869 unchanged lines hidden (view full) --- 878 if "c_code" not in action: 879 continue 880 881 code(''' 882/** \\brief ${{action.desc}} */ 883void 884$c_ident::${{action.ident}}(${{self.TBEType.c_ident}}*& m_tbe_ptr, ${{self.EntryType.c_ident}}*& m_cache_entry_ptr, const Address& addr) 885{ |
886 DPRINTF(RubyGenerated, "executing\\n"); | 886 DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n"); |
887 ${{action["c_code"]}} 888} 889 890''') 891 elif self.TBEType != None: 892 for action in self.actions.itervalues(): 893 if "c_code" not in action: 894 continue 895 896 code(''' 897/** \\brief ${{action.desc}} */ 898void 899$c_ident::${{action.ident}}(${{self.TBEType.c_ident}}*& m_tbe_ptr, const Address& addr) 900{ | 887 ${{action["c_code"]}} 888} 889 890''') 891 elif self.TBEType != None: 892 for action in self.actions.itervalues(): 893 if "c_code" not in action: 894 continue 895 896 code(''' 897/** \\brief ${{action.desc}} */ 898void 899$c_ident::${{action.ident}}(${{self.TBEType.c_ident}}*& m_tbe_ptr, const Address& addr) 900{ |
901 DPRINTF(RubyGenerated, "executing\\n"); | 901 DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n"); |
902 ${{action["c_code"]}} 903} 904 905''') 906 elif self.EntryType != None: 907 for action in self.actions.itervalues(): 908 if "c_code" not in action: 909 continue 910 911 code(''' 912/** \\brief ${{action.desc}} */ 913void 914$c_ident::${{action.ident}}(${{self.EntryType.c_ident}}*& m_cache_entry_ptr, const Address& addr) 915{ | 902 ${{action["c_code"]}} 903} 904 905''') 906 elif self.EntryType != None: 907 for action in self.actions.itervalues(): 908 if "c_code" not in action: 909 continue 910 911 code(''' 912/** \\brief ${{action.desc}} */ 913void 914$c_ident::${{action.ident}}(${{self.EntryType.c_ident}}*& m_cache_entry_ptr, const Address& addr) 915{ |
916 DPRINTF(RubyGenerated, "executing\\n"); | 916 DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n"); |
917 ${{action["c_code"]}} 918} 919 920''') 921 else: 922 for action in self.actions.itervalues(): 923 if "c_code" not in action: 924 continue 925 926 code(''' 927/** \\brief ${{action.desc}} */ 928void 929$c_ident::${{action.ident}}(const Address& addr) 930{ | 917 ${{action["c_code"]}} 918} 919 920''') 921 else: 922 for action in self.actions.itervalues(): 923 if "c_code" not in action: 924 continue 925 926 code(''' 927/** \\brief ${{action.desc}} */ 928void 929$c_ident::${{action.ident}}(const Address& addr) 930{ |
931 DPRINTF(RubyGenerated, "executing\\n"); | 931 DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n"); |
932 ${{action["c_code"]}} 933} 934 935''') 936 code.write(path, "%s.cc" % c_ident) 937 938 def printCWakeup(self, path): 939 '''Output the wakeup loop for the events''' --- 683 unchanged lines hidden --- | 932 ${{action["c_code"]}} 933} 934 935''') 936 code.write(path, "%s.cc" % c_ident) 937 938 def printCWakeup(self, path): 939 '''Output the wakeup loop for the events''' --- 683 unchanged lines hidden --- |