thread_state.hh (3548:85e64c82c522) | thread_state.hh (3673:34386ba8cb41) |
---|---|
1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 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; --- 127 unchanged lines hidden (view full) --- 136 void setFuncExeInst(Counter new_val) { funcExeInst = new_val; } 137 138 /** Returns the status of this thread. */ 139 Status status() const { return _status; } 140 141 /** Sets the status of this thread. */ 142 void setStatus(Status new_status) { _status = new_status; } 143 | 1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 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; --- 127 unchanged lines hidden (view full) --- 136 void setFuncExeInst(Counter new_val) { funcExeInst = new_val; } 137 138 /** Returns the status of this thread. */ 139 Status status() const { return _status; } 140 141 /** Sets the status of this thread. */ 142 void setStatus(Status new_status) { _status = new_status; } 143 |
144 protected: | 144 public: |
145 /** Gets a functional port from the memory object that's connected 146 * to the CPU. */ 147 Port *getMemFuncPort(); 148 | 145 /** Gets a functional port from the memory object that's connected 146 * to the CPU. */ 147 Port *getMemFuncPort(); 148 |
149 public: | |
150 /** Number of instructions committed. */ 151 Counter numInst; 152 /** Stat for number instructions committed. */ 153 Stats::Scalar<> numInsts; 154 /** Stat for number of memory references. */ 155 Stats::Scalar<> numMemRefs; 156 157 /** Number of simulated loads, used for tracking events based on --- 96 unchanged lines hidden --- | 149 /** Number of instructions committed. */ 150 Counter numInst; 151 /** Stat for number instructions committed. */ 152 Stats::Scalar<> numInsts; 153 /** Stat for number of memory references. */ 154 Stats::Scalar<> numMemRefs; 155 156 /** Number of simulated loads, used for tracking events based on --- 96 unchanged lines hidden --- |