tlb.cc (9294:8fb03b13de02) tlb.cc (9439:fce94f92ea0f)
1/*
1/*
2 * Copyright (c) 2010 ARM Limited
2 * Copyright (c) 2010-2012 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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

--- 237 unchanged lines hidden (view full) ---

248 flushedEntries++;
249 }
250 x++;
251 }
252 flushTlbMva++;
253}
254
255void
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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

--- 237 unchanged lines hidden (view full) ---

248 flushedEntries++;
249 }
250 x++;
251 }
252 flushTlbMva++;
253}
254
255void
256TLB::drainResume()
257{
258 // We might have unserialized something or switched CPUs, so make
259 // sure to re-read the misc regs.
260 miscRegValid = false;
261}
262
263void
256TLB::serialize(ostream &os)
257{
258 DPRINTF(Checkpoint, "Serializing Arm TLB\n");
259
260 SERIALIZE_SCALAR(_attr);
261
262 int num_entries = size;
263 SERIALIZE_SCALAR(num_entries);

--- 9 unchanged lines hidden (view full) ---

273 DPRINTF(Checkpoint, "Unserializing Arm TLB\n");
274
275 UNSERIALIZE_SCALAR(_attr);
276 int num_entries;
277 UNSERIALIZE_SCALAR(num_entries);
278 for(int i = 0; i < min(size, num_entries); i++){
279 table[i].unserialize(cp, csprintf("%s.TlbEntry%d", section, i));
280 }
264TLB::serialize(ostream &os)
265{
266 DPRINTF(Checkpoint, "Serializing Arm TLB\n");
267
268 SERIALIZE_SCALAR(_attr);
269
270 int num_entries = size;
271 SERIALIZE_SCALAR(num_entries);

--- 9 unchanged lines hidden (view full) ---

281 DPRINTF(Checkpoint, "Unserializing Arm TLB\n");
282
283 UNSERIALIZE_SCALAR(_attr);
284 int num_entries;
285 UNSERIALIZE_SCALAR(num_entries);
286 for(int i = 0; i < min(size, num_entries); i++){
287 table[i].unserialize(cp, csprintf("%s.TlbEntry%d", section, i));
288 }
281 miscRegValid = false;
282}
283
284void
285TLB::regStats()
286{
287 instHits
288 .name(name() + ".inst_hits")
289 .desc("ITB inst hits")

--- 448 unchanged lines hidden ---
289}
290
291void
292TLB::regStats()
293{
294 instHits
295 .name(name() + ".inst_hits")
296 .desc("ITB inst hits")

--- 448 unchanged lines hidden ---