StateMachine.py (11049:dfb0aa3f0649) StateMachine.py (11061:25b53a7195f7)
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# Copyright (c) 2013 Advanced Micro Devices, Inc.
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

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

315
316 void recordCacheTrace(int cntrl, CacheRecorder* tr);
317 Sequencer* getSequencer() const;
318
319 int functionalWriteBuffers(PacketPtr&);
320
321 void countTransition(${ident}_State state, ${ident}_Event event);
322 void possibleTransition(${ident}_State state, ${ident}_Event event);
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# Copyright (c) 2013 Advanced Micro Devices, Inc.
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

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

315
316 void recordCacheTrace(int cntrl, CacheRecorder* tr);
317 Sequencer* getSequencer() const;
318
319 int functionalWriteBuffers(PacketPtr&);
320
321 void countTransition(${ident}_State state, ${ident}_Event event);
322 void possibleTransition(${ident}_State state, ${ident}_Event event);
323 uint64 getEventCount(${ident}_Event event);
323 uint64_t getEventCount(${ident}_Event event);
324 bool isPossible(${ident}_State state, ${ident}_Event event);
324 bool isPossible(${ident}_State state, ${ident}_Event event);
325 uint64 getTransitionCount(${ident}_State state, ${ident}_Event event);
325 uint64_t getTransitionCount(${ident}_State state, ${ident}_Event event);
326
327private:
328''')
329
330 code.indent()
331 # added by SS
332 for param in self.config_parameters:
333 if param.pointer:

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

797}
798void
799$c_ident::possibleTransition(${ident}_State state,
800 ${ident}_Event event)
801{
802 m_possible[state][event] = true;
803}
804
326
327private:
328''')
329
330 code.indent()
331 # added by SS
332 for param in self.config_parameters:
333 if param.pointer:

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

797}
798void
799$c_ident::possibleTransition(${ident}_State state,
800 ${ident}_Event event)
801{
802 m_possible[state][event] = true;
803}
804
805uint64
805uint64_t
806$c_ident::getEventCount(${ident}_Event event)
807{
808 return m_event_counters[event];
809}
810
811bool
812$c_ident::isPossible(${ident}_State state, ${ident}_Event event)
813{
814 return m_possible[state][event];
815}
816
806$c_ident::getEventCount(${ident}_Event event)
807{
808 return m_event_counters[event];
809}
810
811bool
812$c_ident::isPossible(${ident}_State state, ${ident}_Event event)
813{
814 return m_possible[state][event];
815}
816
817uint64
817uint64_t
818$c_ident::getTransitionCount(${ident}_State state,
819 ${ident}_Event event)
820{
821 return m_counters[state][event];
822}
823
824int
825$c_ident::getNumControllers()

--- 753 unchanged lines hidden ---
818$c_ident::getTransitionCount(${ident}_State state,
819 ${ident}_Event event)
820{
821 return m_counters[state][event];
822}
823
824int
825$c_ident::getNumControllers()

--- 753 unchanged lines hidden ---