StateMachine.py (10008:5176f0a71e56) StateMachine.py (10010:4aa1135c05d4)
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;

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

293 ${{self.EntryType.c_ident}}* m_cache_entry_ptr,
294''')
295 if self.TBEType != None:
296 code('''
297 ${{self.TBEType.c_ident}}* m_tbe_ptr,
298''')
299
300 code('''
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;

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

293 ${{self.EntryType.c_ident}}* m_cache_entry_ptr,
294''')
295 if self.TBEType != None:
296 code('''
297 ${{self.TBEType.c_ident}}* m_tbe_ptr,
298''')
299
300 code('''
301 const Address& addr);
301 const Address addr);
302
303TransitionResult doTransitionWorker(${ident}_Event event,
304 ${ident}_State state,
305 ${ident}_State& next_state,
306''')
307
308 if self.TBEType != None:
309 code('''

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

1153 code('''
1154 ${{self.EntryType.c_ident}}* m_cache_entry_ptr,
1155''')
1156 if self.TBEType != None:
1157 code('''
1158 ${{self.TBEType.c_ident}}* m_tbe_ptr,
1159''')
1160 code('''
302
303TransitionResult doTransitionWorker(${ident}_Event event,
304 ${ident}_State state,
305 ${ident}_State& next_state,
306''')
307
308 if self.TBEType != None:
309 code('''

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

1153 code('''
1154 ${{self.EntryType.c_ident}}* m_cache_entry_ptr,
1155''')
1156 if self.TBEType != None:
1157 code('''
1158 ${{self.TBEType.c_ident}}* m_tbe_ptr,
1159''')
1160 code('''
1161 const Address &addr)
1161 const Address addr)
1162{
1163''')
1164 if self.TBEType != None and self.EntryType != None:
1165 code('${ident}_State state = getState(m_tbe_ptr, m_cache_entry_ptr, addr);')
1166 elif self.TBEType != None:
1167 code('${ident}_State state = getState(m_tbe_ptr, addr);')
1168 elif self.EntryType != None:
1169 code('${ident}_State state = getState(m_cache_entry_ptr, addr);')

--- 368 unchanged lines hidden ---
1162{
1163''')
1164 if self.TBEType != None and self.EntryType != None:
1165 code('${ident}_State state = getState(m_tbe_ptr, m_cache_entry_ptr, addr);')
1166 elif self.TBEType != None:
1167 code('${ident}_State state = getState(m_tbe_ptr, addr);')
1168 elif self.EntryType != None:
1169 code('${ident}_State state = getState(m_cache_entry_ptr, addr);')

--- 368 unchanged lines hidden ---