StateMachine.py (11308:7d8836fd043d) StateMachine.py (11309:9be8a40026df)
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

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

305 void print(std::ostream& out) const;
306 void wakeup();
307 void resetStats();
308 void regStats();
309 void collateStats();
310
311 void recordCacheTrace(int cntrl, CacheRecorder* tr);
312 Sequencer* getCPUSequencer() const;
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

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

305 void print(std::ostream& out) const;
306 void wakeup();
307 void resetStats();
308 void regStats();
309 void collateStats();
310
311 void recordCacheTrace(int cntrl, CacheRecorder* tr);
312 Sequencer* getCPUSequencer() const;
313 GPUCoalescer* getGPUCoalescer() const;
313
314 int functionalWriteBuffers(PacketPtr&);
315
316 void countTransition(${ident}_State state, ${ident}_Event event);
317 void possibleTransition(${ident}_State state, ${ident}_Event event);
318 uint64_t getEventCount(${ident}_Event event);
319 bool isPossible(${ident}_State state, ${ident}_Event event);
320 uint64_t getTransitionCount(${ident}_State state, ${ident}_Event event);

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

675 memq_ident = "m_responseFromMemory_ptr"
676
677 seq_ident = "NULL"
678 for param in self.config_parameters:
679 if param.ident == "sequencer":
680 assert(param.pointer)
681 seq_ident = "m_%s_ptr" % param.ident
682
314
315 int functionalWriteBuffers(PacketPtr&);
316
317 void countTransition(${ident}_State state, ${ident}_Event event);
318 void possibleTransition(${ident}_State state, ${ident}_Event event);
319 uint64_t getEventCount(${ident}_Event event);
320 bool isPossible(${ident}_State state, ${ident}_Event event);
321 uint64_t getTransitionCount(${ident}_State state, ${ident}_Event event);

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

676 memq_ident = "m_responseFromMemory_ptr"
677
678 seq_ident = "NULL"
679 for param in self.config_parameters:
680 if param.ident == "sequencer":
681 assert(param.pointer)
682 seq_ident = "m_%s_ptr" % param.ident
683
684 coal_ident = "NULL"
685 for param in self.config_parameters:
686 if param.ident == "coalescer":
687 assert(param.pointer)
688 coal_ident = "m_%s_ptr" % param.ident
689
683 if seq_ident != "NULL":
684 code('''
685Sequencer*
686$c_ident::getCPUSequencer() const
687{
688 if (NULL != $seq_ident && $seq_ident->isCPUSequencer()) {
689 return $seq_ident;
690 } else {

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

697
698Sequencer*
699$c_ident::getCPUSequencer() const
700{
701 return NULL;
702}
703''')
704
690 if seq_ident != "NULL":
691 code('''
692Sequencer*
693$c_ident::getCPUSequencer() const
694{
695 if (NULL != $seq_ident && $seq_ident->isCPUSequencer()) {
696 return $seq_ident;
697 } else {

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

704
705Sequencer*
706$c_ident::getCPUSequencer() const
707{
708 return NULL;
709}
710''')
711
712 if coal_ident != "NULL":
713 code('''
714GPUCoalescer*
715$c_ident::getGPUCoalescer() const
716{
717 if (NULL != $coal_ident && !$coal_ident->isCPUSequencer()) {
718 return $coal_ident;
719 } else {
720 return NULL;
721 }
722}
723''')
724 else:
725 code('''
726
727GPUCoalescer*
728$c_ident::getGPUCoalescer() const
729{
730 return NULL;
731}
732''')
733
705 code('''
706
707void
708$c_ident::regStats()
709{
710 AbstractController::regStats();
711
712 if (m_version == 0) {

--- 849 unchanged lines hidden ---
734 code('''
735
736void
737$c_ident::regStats()
738{
739 AbstractController::regStats();
740
741 if (m_version == 0) {

--- 849 unchanged lines hidden ---