StateMachine.py (10523:5777a3e55603) | StateMachine.py (10524:fff17530cef6) |
---|---|
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; --- 271 unchanged lines hidden (view full) --- 280 void wakeup(); 281 void resetStats(); 282 void regStats(); 283 void collateStats(); 284 285 void recordCacheTrace(int cntrl, CacheRecorder* tr); 286 Sequencer* getSequencer() const; 287 | 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; --- 271 unchanged lines hidden (view full) --- 280 void wakeup(); 281 void resetStats(); 282 void regStats(); 283 void collateStats(); 284 285 void recordCacheTrace(int cntrl, CacheRecorder* tr); 286 Sequencer* getSequencer() const; 287 |
288 uint32_t functionalWriteBuffers(PacketPtr&); | 288 int functionalWriteBuffers(PacketPtr&); |
289 290 void countTransition(${ident}_State state, ${ident}_Event event); 291 void possibleTransition(${ident}_State state, ${ident}_Event event); 292 uint64 getEventCount(${ident}_Event event); 293 bool isPossible(${ident}_State state, ${ident}_Event event); 294 uint64 getTransitionCount(${ident}_State state, ${ident}_Event event); 295 296private: --- 687 unchanged lines hidden (view full) --- 984} 985 986''') 987 for func in self.functions: 988 code(func.generateCode()) 989 990 # Function for functional writes to messages buffered in the controller 991 code(''' | 289 290 void countTransition(${ident}_State state, ${ident}_Event event); 291 void possibleTransition(${ident}_State state, ${ident}_Event event); 292 uint64 getEventCount(${ident}_Event event); 293 bool isPossible(${ident}_State state, ${ident}_Event event); 294 uint64 getTransitionCount(${ident}_State state, ${ident}_Event event); 295 296private: --- 687 unchanged lines hidden (view full) --- 984} 985 986''') 987 for func in self.functions: 988 code(func.generateCode()) 989 990 # Function for functional writes to messages buffered in the controller 991 code(''' |
992uint32_t | 992int |
993$c_ident::functionalWriteBuffers(PacketPtr& pkt) 994{ | 993$c_ident::functionalWriteBuffers(PacketPtr& pkt) 994{ |
995 uint32_t num_functional_writes = 0; | 995 int num_functional_writes = 0; |
996''') 997 for var in self.objects: 998 vtype = var.type 999 if vtype.isBuffer: 1000 vid = "m_%s_ptr" % var.ident 1001 code('num_functional_writes += $vid->functionalWrite(pkt);') 1002 1003 for var in self.config_parameters: --- 523 unchanged lines hidden --- | 996''') 997 for var in self.objects: 998 vtype = var.type 999 if vtype.isBuffer: 1000 vid = "m_%s_ptr" % var.ident 1001 code('num_functional_writes += $vid->functionalWrite(pkt);') 1002 1003 for var in self.config_parameters: --- 523 unchanged lines hidden --- |