s/cpu_id/cpuId in o3 (to be consistent and match style), also fix some typos in
comments.
This commit is contained in:
parent
546a6c0c1b
commit
8788d703f8
3 changed files with 6 additions and 7 deletions
|
@ -62,7 +62,7 @@ class BaseCPUParams;
|
|||
using namespace TheISA;
|
||||
|
||||
BaseO3CPU::BaseO3CPU(BaseCPUParams *params)
|
||||
: BaseCPU(params), cpu_id(0)
|
||||
: BaseCPU(params), cpuId(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -76,13 +76,13 @@ class BaseO3CPU : public BaseCPU
|
|||
void regStats();
|
||||
|
||||
/** Sets this CPU's ID. */
|
||||
void setCpuId(int id) { cpu_id = id; }
|
||||
void setCpuId(int id) { cpuId = id; }
|
||||
|
||||
/** Reads this CPU's ID. */
|
||||
int readCpuId() { return cpu_id; }
|
||||
int readCpuId() { return cpuId; }
|
||||
|
||||
protected:
|
||||
int cpu_id;
|
||||
int cpuId;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
5
src/mem/cache/cache.hh
vendored
5
src/mem/cache/cache.hh
vendored
|
@ -137,7 +137,7 @@ class Cache : public BaseCache
|
|||
BlkType *tempBlock;
|
||||
|
||||
/**
|
||||
* Can this cache should allocate a block on a line-sized write miss.
|
||||
* This cache should allocate a block on a line-sized write miss.
|
||||
*/
|
||||
const bool doFastWrites;
|
||||
|
||||
|
@ -149,8 +149,7 @@ class Cache : public BaseCache
|
|||
* @param lat The latency of the access.
|
||||
* @param writebacks List for any writebacks that need to be performed.
|
||||
* @param update True if the replacement data should be updated.
|
||||
* @return Pointer to the cache block touched by the request. NULL if it
|
||||
* was a miss.
|
||||
* @return Boolean indicating whether the request was satisfied.
|
||||
*/
|
||||
bool access(PacketPtr pkt, BlkType *&blk,
|
||||
int &lat, PacketList &writebacks);
|
||||
|
|
Loading…
Reference in a new issue