65,66c65,67
< TLB::TLB(const Params *p) : BaseTLB(p), configAddress(0), size(p->size),
< lruSeq(0)
---
> TLB::TLB(const Params *p)
> : BaseTLB(p), configAddress(0), size(p->size),
> tlb(size), lruSeq(0)
70,71d70
< tlb = new TlbEntry[size];
< std::memset(tlb, 0, sizeof(TlbEntry) * size);
454c453
< TLB::serialize(std::ostream &os)
---
> TLB::serialize(CheckpointOut &cp) const
462d460
<
464,468c462,463
< if (tlb[x].trieHandle != NULL) {
< os << "\n[" << csprintf("%s.Entry%d", name(), _count) << "]\n";
< tlb[x].serialize(os);
< _count++;
< }
---
> if (tlb[x].trieHandle != NULL)
> tlb[x].serializeSection(cp, csprintf("Entry%d", _count++));
473c468
< TLB::unserialize(Checkpoint *cp, const std::string &section)
---
> TLB::unserialize(CheckpointIn &cp)
488c483
< newEntry->unserialize(cp, csprintf("%s.Entry%d", name(), x));
---
> newEntry->unserializeSection(cp, csprintf("Entry%d", x));