base.hh (4997:e7380529bd2d) | base.hh (4998:51a0f9f59cc5) |
---|---|
1/* 2 * Copyright (c) 2002-2005 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; --- 143 unchanged lines hidden (view full) --- 152 virtual void regStats(); 153 virtual void resetStats(); 154 155 // number of simulated instructions 156 Counter numInst; 157 Counter startNumInst; 158 Stats::Scalar<> numInsts; 159 | 1/* 2 * Copyright (c) 2002-2005 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; --- 143 unchanged lines hidden (view full) --- 152 virtual void regStats(); 153 virtual void resetStats(); 154 155 // number of simulated instructions 156 Counter numInst; 157 Counter startNumInst; 158 Stats::Scalar<> numInsts; 159 |
160 void countInst() 161 { 162 numInst++; 163 numInsts++; 164 165 thread->funcExeInst++; 166 } 167 |
|
160 virtual Counter totalInstructions() const 161 { 162 return numInst - startNumInst; 163 } 164 165 // Mask to align PCs to MachInst sized boundaries 166 static const Addr PCMask = ~((Addr)sizeof(TheISA::MachInst) - 1); 167 --- 214 unchanged lines hidden --- | 168 virtual Counter totalInstructions() const 169 { 170 return numInst - startNumInst; 171 } 172 173 // Mask to align PCs to MachInst sized boundaries 174 static const Addr PCMask = ~((Addr)sizeof(TheISA::MachInst) - 1); 175 --- 214 unchanged lines hidden --- |