StateMachine.py (8155:099771c7725d) StateMachine.py (8159:de9e34de70ff)
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;

--- 1218 unchanged lines hidden (view full) ---

1227 # the same code
1228 for trans in transitions:
1229 code(' case HASH_FUN($trans):')
1230 code(' $case')
1231
1232 code('''
1233 default:
1234 fatal("Invalid transition\\n"
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;

--- 1218 unchanged lines hidden (view full) ---

1227 # the same code
1228 for trans in transitions:
1229 code(' case HASH_FUN($trans):')
1230 code(' $case')
1231
1232 code('''
1233 default:
1234 fatal("Invalid transition\\n"
1235 "version: %d time: %d addr: %s event: %s state: %s\\n",
1236 m_version, g_eventQueue_ptr->getTime(), addr, event, state);
1235 "%s time: %d addr: %s event: %s state: %s\\n",
1236 name(), g_eventQueue_ptr->getTime(), addr, event, state);
1237 }
1238 return TransitionResult_Valid;
1239}
1240''')
1241 code.write(path, "%s_Transitions.cc" % self.ident)
1242
1243 def printProfileDumperHH(self, path):
1244 code = self.symtab.codeFormatter()

--- 395 unchanged lines hidden ---
1237 }
1238 return TransitionResult_Valid;
1239}
1240''')
1241 code.write(path, "%s_Transitions.cc" % self.ident)
1242
1243 def printProfileDumperHH(self, path):
1244 code = self.symtab.codeFormatter()

--- 395 unchanged lines hidden ---