physical.cc (10905:a6ca6831e775) physical.cc (11005:e7f403b6b76f)
1/*
2 * Copyright (c) 2012, 2014 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

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

288 }
289}
290
291void
292PhysicalMemory::serialize(CheckpointOut &cp) const
293{
294 // serialize all the locked addresses and their context ids
295 vector<Addr> lal_addr;
1/*
2 * Copyright (c) 2012, 2014 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

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

288 }
289}
290
291void
292PhysicalMemory::serialize(CheckpointOut &cp) const
293{
294 // serialize all the locked addresses and their context ids
295 vector<Addr> lal_addr;
296 vector<int> lal_cid;
296 vector<ContextID> lal_cid;
297
298 for (auto& m : memories) {
299 const list<LockedAddr>& locked_addrs = m->getLockedAddrList();
300 for (const auto& l : locked_addrs) {
301 lal_addr.push_back(l.addr);
302 lal_cid.push_back(l.contextId);
303 }
304 }

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

365}
366
367void
368PhysicalMemory::unserialize(CheckpointIn &cp)
369{
370 // unserialize the locked addresses and map them to the
371 // appropriate memory controller
372 vector<Addr> lal_addr;
297
298 for (auto& m : memories) {
299 const list<LockedAddr>& locked_addrs = m->getLockedAddrList();
300 for (const auto& l : locked_addrs) {
301 lal_addr.push_back(l.addr);
302 lal_cid.push_back(l.contextId);
303 }
304 }

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

365}
366
367void
368PhysicalMemory::unserialize(CheckpointIn &cp)
369{
370 // unserialize the locked addresses and map them to the
371 // appropriate memory controller
372 vector<Addr> lal_addr;
373 vector<int> lal_cid;
373 vector<ContextID> lal_cid;
374 UNSERIALIZE_CONTAINER(lal_addr);
375 UNSERIALIZE_CONTAINER(lal_cid);
376 for(size_t i = 0; i < lal_addr.size(); ++i) {
377 const auto& m = addrMap.find(lal_addr[i]);
378 m->second->addLockedAddr(LockedAddr(lal_addr[i], lal_cid[i]));
379 }
380
381 // unserialize the backing stores

--- 69 unchanged lines hidden ---
374 UNSERIALIZE_CONTAINER(lal_addr);
375 UNSERIALIZE_CONTAINER(lal_cid);
376 for(size_t i = 0; i < lal_addr.size(); ++i) {
377 const auto& m = addrMap.find(lal_addr[i]);
378 m->second->addLockedAddr(LockedAddr(lal_addr[i], lal_cid[i]));
379 }
380
381 // unserialize the backing stores

--- 69 unchanged lines hidden ---