Replace curTick global variable with accessor functions.
This step makes it easy to replace the accessor functions (which still access a global variable) with ones that access per-thread curTick values.
This commit is contained in:
@@ -80,7 +80,7 @@ FastAlloc::moreStructs(int bucket)
|
||||
#include <typeinfo>
|
||||
|
||||
#include "base/cprintf.hh"
|
||||
#include "sim/core.hh" // for curTick
|
||||
#include "sim/core.hh" // for curTick()
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -104,7 +104,7 @@ FastAlloc::FastAlloc()
|
||||
{
|
||||
// mark this object in use
|
||||
inUse = true;
|
||||
whenAllocated = curTick;
|
||||
whenAllocated = curTick();
|
||||
|
||||
// update count
|
||||
++numInUse;
|
||||
|
||||
Reference in New Issue
Block a user