pagetable.cc (8953:488d45aeb672) | pagetable.cc (9111:f133ba654050) |
---|---|
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 --- 23 unchanged lines hidden (view full) --- 32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 * 37 * Authors: Gabe Black 38 */ 39 | 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 --- 23 unchanged lines hidden (view full) --- 32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 * 37 * Authors: Gabe Black 38 */ 39 |
40#include <cmath> |
|
40#include "arch/x86/isa_traits.hh" 41#include "arch/x86/pagetable.hh" 42#include "sim/serialize.hh" 43 44namespace X86ISA 45{ 46 47TlbEntry::TlbEntry(Addr asn, Addr _vaddr, Addr _paddr) : --- 16 unchanged lines hidden (view full) --- 64 SERIALIZE_SCALAR(lruSeq); 65} 66 67void 68TlbEntry::unserialize(Checkpoint *cp, const std::string §ion) 69{ 70 UNSERIALIZE_SCALAR(paddr); 71 UNSERIALIZE_SCALAR(vaddr); | 41#include "arch/x86/isa_traits.hh" 42#include "arch/x86/pagetable.hh" 43#include "sim/serialize.hh" 44 45namespace X86ISA 46{ 47 48TlbEntry::TlbEntry(Addr asn, Addr _vaddr, Addr _paddr) : --- 16 unchanged lines hidden (view full) --- 65 SERIALIZE_SCALAR(lruSeq); 66} 67 68void 69TlbEntry::unserialize(Checkpoint *cp, const std::string §ion) 70{ 71 UNSERIALIZE_SCALAR(paddr); 72 UNSERIALIZE_SCALAR(vaddr); |
72 UNSERIALIZE_SCALAR(logBytes); | 73 // 74 // The logBytes scalar variable replaced the previous size variable. 75 // The following code maintains backwards compatibility with previous 76 // checkpoints using the old size variable. 77 // 78 if (UNSERIALIZE_OPT_SCALAR(logBytes) == false) { 79 int size; 80 UNSERIALIZE_SCALAR(size); 81 logBytes = log2(size); 82 } |
73 UNSERIALIZE_SCALAR(writable); 74 UNSERIALIZE_SCALAR(user); 75 UNSERIALIZE_SCALAR(uncacheable); 76 UNSERIALIZE_SCALAR(global); 77 UNSERIALIZE_SCALAR(patBit); 78 UNSERIALIZE_SCALAR(noExec); | 83 UNSERIALIZE_SCALAR(writable); 84 UNSERIALIZE_SCALAR(user); 85 UNSERIALIZE_SCALAR(uncacheable); 86 UNSERIALIZE_SCALAR(global); 87 UNSERIALIZE_SCALAR(patBit); 88 UNSERIALIZE_SCALAR(noExec); |
79 UNSERIALIZE_SCALAR(lruSeq); | 89 if (UNSERIALIZE_OPT_SCALAR(lruSeq) == false) { 90 lruSeq = 0; 91 } |
80} 81 82} | 92} 93 94} |