pagetable.cc (5268:5bfc53fe60e7) | pagetable.cc (6378:4a2ff62c3b4f) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007 MIPS Technologies, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 23 unchanged lines hidden (view full) --- 32 */ 33 34#include "arch/mips/pagetable.hh" 35#include "sim/serialize.hh" 36 37namespace MipsISA 38{ 39 | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007 MIPS Technologies, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 23 unchanged lines hidden (view full) --- 32 */ 33 34#include "arch/mips/pagetable.hh" 35#include "sim/serialize.hh" 36 37namespace MipsISA 38{ 39 |
40void 41PTE::serialize(std::ostream &os) 42{ 43 SERIALIZE_SCALAR(Mask); 44 SERIALIZE_SCALAR(VPN); 45 SERIALIZE_SCALAR(asid); 46 SERIALIZE_SCALAR(G); 47 SERIALIZE_SCALAR(PFN0); 48 SERIALIZE_SCALAR(D0); 49 SERIALIZE_SCALAR(V0); 50 SERIALIZE_SCALAR(C0); 51 SERIALIZE_SCALAR(PFN1); 52 SERIALIZE_SCALAR(D1); 53 SERIALIZE_SCALAR(V1); 54 SERIALIZE_SCALAR(C1); 55 SERIALIZE_SCALAR(AddrShiftAmount); 56 SERIALIZE_SCALAR(OffsetMask); 57} |
|
40 | 58 |
41 void 42 PTE::serialize(std::ostream &os) 43 { 44 SERIALIZE_SCALAR(Mask); 45 SERIALIZE_SCALAR(VPN); 46 SERIALIZE_SCALAR(asid); 47 SERIALIZE_SCALAR(G); 48 SERIALIZE_SCALAR(PFN0); 49 SERIALIZE_SCALAR(D0); 50 SERIALIZE_SCALAR(V0); 51 SERIALIZE_SCALAR(C0); 52 SERIALIZE_SCALAR(PFN1); 53 SERIALIZE_SCALAR(D1); 54 SERIALIZE_SCALAR(V1); 55 SERIALIZE_SCALAR(C1); 56 SERIALIZE_SCALAR(AddrShiftAmount); 57 SERIALIZE_SCALAR(OffsetMask); 58 } | 59void 60PTE::unserialize(Checkpoint *cp, const std::string §ion) 61{ 62 UNSERIALIZE_SCALAR(Mask); 63 UNSERIALIZE_SCALAR(VPN); 64 UNSERIALIZE_SCALAR(asid); 65 UNSERIALIZE_SCALAR(G); 66 UNSERIALIZE_SCALAR(PFN0); 67 UNSERIALIZE_SCALAR(D0); 68 UNSERIALIZE_SCALAR(V0); 69 UNSERIALIZE_SCALAR(C0); 70 UNSERIALIZE_SCALAR(PFN1); 71 UNSERIALIZE_SCALAR(D1); 72 UNSERIALIZE_SCALAR(V1); 73 UNSERIALIZE_SCALAR(C1); 74 UNSERIALIZE_SCALAR(AddrShiftAmount); 75 UNSERIALIZE_SCALAR(OffsetMask); 76} |
59 | 77 |
60 void 61 PTE::unserialize(Checkpoint *cp, const std::string §ion) 62 { 63 UNSERIALIZE_SCALAR(Mask); 64 UNSERIALIZE_SCALAR(VPN); 65 UNSERIALIZE_SCALAR(asid); 66 UNSERIALIZE_SCALAR(G); 67 UNSERIALIZE_SCALAR(PFN0); 68 UNSERIALIZE_SCALAR(D0); 69 UNSERIALIZE_SCALAR(V0); 70 UNSERIALIZE_SCALAR(C0); 71 UNSERIALIZE_SCALAR(PFN1); 72 UNSERIALIZE_SCALAR(D1); 73 UNSERIALIZE_SCALAR(V1); 74 UNSERIALIZE_SCALAR(C1); 75 UNSERIALIZE_SCALAR(AddrShiftAmount); 76 UNSERIALIZE_SCALAR(OffsetMask); 77 } | |
78} | 78} |