tlb.cc (7720:65d338a8dba4) | tlb.cc (7733:08d6a773d1b6) |
---|---|
1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 231 unchanged lines hidden (view full) --- 240 } 241 x++; 242 } 243} 244 245void 246TLB::serialize(ostream &os) 247{ | 1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 231 unchanged lines hidden (view full) --- 240 } 241 x++; 242 } 243} 244 245void 246TLB::serialize(ostream &os) 247{ |
248 panic("Implement Serialize\n"); | 248 DPRINTF(Checkpoint, "Serializing Arm TLB\n"); 249 250 SERIALIZE_SCALAR(_attr); 251 for(int i = 0; i < size; i++){ 252 nameOut(os, csprintf("%s.TlbEntry%d", name(), i)); 253 table[i].serialize(os); 254 } |
249} 250 251void 252TLB::unserialize(Checkpoint *cp, const string §ion) 253{ | 255} 256 257void 258TLB::unserialize(Checkpoint *cp, const string §ion) 259{ |
260 DPRINTF(Checkpoint, "Unserializing Arm TLB\n"); |
|
254 | 261 |
255 panic("Need to properly unserialize TLB\n"); | 262 UNSERIALIZE_SCALAR(_attr); 263 for(int i = 0; i < size; i++){ 264 table[i].unserialize(cp, csprintf("%s.TlbEntry%d", section, i)); 265 } |
256} 257 258void 259TLB::regStats() 260{ 261 read_hits 262 .name(name() + ".read_hits") 263 .desc("DTB read hits") --- 337 unchanged lines hidden --- | 266} 267 268void 269TLB::regStats() 270{ 271 read_hits 272 .name(name() + ".read_hits") 273 .desc("DTB read hits") --- 337 unchanged lines hidden --- |