StateMachine.py (7007:79413d1ec307) StateMachine.py (7025:9adf5b0ccc79)
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;

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

646{
647''')
648 #
649 # Cache and Memory Controllers have specific profilers associated with
650 # them. Print out these stats before dumping state transition stats.
651 #
652 for param in self.config_parameters:
653 if param.type_ast.type.ident == "CacheMemory" or \
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;

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

646{
647''')
648 #
649 # Cache and Memory Controllers have specific profilers associated with
650 # them. Print out these stats before dumping state transition stats.
651 #
652 for param in self.config_parameters:
653 if param.type_ast.type.ident == "CacheMemory" or \
654 param.type_ast.type.ident == "DirectoryMemory" or \
654 param.type_ast.type.ident == "MemoryControl":
655 assert(param.pointer)
656 code(' m_${{param.ident}}_ptr->printStats(out);')
657
658 code('''
659 s_profiler.dumpStats(out);
660}
661

--- 570 unchanged lines hidden ---
655 param.type_ast.type.ident == "MemoryControl":
656 assert(param.pointer)
657 code(' m_${{param.ident}}_ptr->printStats(out);')
658
659 code('''
660 s_profiler.dumpStats(out);
661}
662

--- 570 unchanged lines hidden ---