pagetable.cc (7087:fb8d5786ff30) | pagetable.cc (7902:aafb4a7384d4) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 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 --- 38 unchanged lines hidden (view full) --- 47TlbEntry::TlbEntry(Addr asn, Addr _vaddr, Addr _paddr) : 48 paddr(_paddr), vaddr(_vaddr), size(PageBytes), writable(true), user(true), 49 uncacheable(false), global(false), patBit(0), noExec(false) 50{} 51 52void 53TlbEntry::serialize(std::ostream &os) 54{ | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 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 --- 38 unchanged lines hidden (view full) --- 47TlbEntry::TlbEntry(Addr asn, Addr _vaddr, Addr _paddr) : 48 paddr(_paddr), vaddr(_vaddr), size(PageBytes), writable(true), user(true), 49 uncacheable(false), global(false), patBit(0), noExec(false) 50{} 51 52void 53TlbEntry::serialize(std::ostream &os) 54{ |
55 SERIALIZE_SCALAR(paddr); 56 SERIALIZE_SCALAR(vaddr); 57 SERIALIZE_SCALAR(size); 58 SERIALIZE_SCALAR(writable); 59 SERIALIZE_SCALAR(user); 60 SERIALIZE_SCALAR(uncacheable); 61 SERIALIZE_SCALAR(global); 62 SERIALIZE_SCALAR(patBit); 63 SERIALIZE_SCALAR(noExec); |
|
55} 56 57void 58TlbEntry::unserialize(Checkpoint *cp, const std::string §ion) 59{ | 64} 65 66void 67TlbEntry::unserialize(Checkpoint *cp, const std::string §ion) 68{ |
69 UNSERIALIZE_SCALAR(paddr); 70 UNSERIALIZE_SCALAR(vaddr); 71 UNSERIALIZE_SCALAR(size); 72 UNSERIALIZE_SCALAR(writable); 73 UNSERIALIZE_SCALAR(user); 74 UNSERIALIZE_SCALAR(uncacheable); 75 UNSERIALIZE_SCALAR(global); 76 UNSERIALIZE_SCALAR(patBit); 77 UNSERIALIZE_SCALAR(noExec); |
|
60} 61 62} | 78} 79 80} |