: MemObject(p), stateQueue(NUM_WALKERS), port(NULL), tlb(NULL),
currState(NULL), doL1DescEvent(this), doL2DescEvent(this)
{
- sctlr = NULL;
+ sctlr = 0;
}
TableWalker::~TableWalker()
new PrefetchAbort(currState->vaddr, ArmFault::Translation0);
else
currState->fault =
- new DataAbort(currState->vaddr, NULL, currState->isWrite,
+ new DataAbort(currState->vaddr, 0, currState->isWrite,
ArmFault::Translation0);
return;
case L1Descriptor::Section:
*/
currState->fault =
- new DataAbort(currState->vaddr, NULL, currState->isWrite,
+ new DataAbort(currState->vaddr, 0, currState->isWrite,
ArmFault::AccessFlag1);
}
GenRepl::GenRepl(const Params *p) // fix this, should be set by cache
: Repl(p), num_pools(p->num_pools), fresh_res(p->fresh_res),
pool_res(p->pool_res), num_entries(0), num_pool_entries(0), misses(0),
- pools(pools = new GenPool[num_pools+1])
+ pools(new GenPool[num_pools+1])
{
}
// for which operator[] returns a special reference class
// that's not the same as 'bool&', (since it's a packed
// vector)
- T scalar_value;
+ T scalar_value = 0;
if (!parseParam(tokens[i], scalar_value)) {
string err("could not parse \"");
// for which operator[] returns a special reference class
// that's not the same as 'bool&', (since it's a packed
// vector)
- T scalar_value;
+ T scalar_value = 0;
if (!parseParam(tokens[i], scalar_value)) {
string err("could not parse \"");