pagetable.cc (7811:a8fc35183c10) | pagetable.cc (10905:a6ca6831e775) |
---|---|
1/* 2 * Copyright (c) 2006-2007 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 20 unchanged lines hidden (view full) --- 29 */ 30 31#include "arch/alpha/pagetable.hh" 32#include "sim/serialize.hh" 33 34namespace AlphaISA { 35 36void | 1/* 2 * Copyright (c) 2006-2007 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 20 unchanged lines hidden (view full) --- 29 */ 30 31#include "arch/alpha/pagetable.hh" 32#include "sim/serialize.hh" 33 34namespace AlphaISA { 35 36void |
37TlbEntry::serialize(std::ostream &os) | 37TlbEntry::serialize(CheckpointOut &cp) const |
38{ 39 SERIALIZE_SCALAR(tag); 40 SERIALIZE_SCALAR(ppn); 41 SERIALIZE_SCALAR(xre); 42 SERIALIZE_SCALAR(xwe); 43 SERIALIZE_SCALAR(asn); 44 SERIALIZE_SCALAR(asma); 45 SERIALIZE_SCALAR(fonr); 46 SERIALIZE_SCALAR(fonw); 47 SERIALIZE_SCALAR(valid); 48} 49 50void | 38{ 39 SERIALIZE_SCALAR(tag); 40 SERIALIZE_SCALAR(ppn); 41 SERIALIZE_SCALAR(xre); 42 SERIALIZE_SCALAR(xwe); 43 SERIALIZE_SCALAR(asn); 44 SERIALIZE_SCALAR(asma); 45 SERIALIZE_SCALAR(fonr); 46 SERIALIZE_SCALAR(fonw); 47 SERIALIZE_SCALAR(valid); 48} 49 50void |
51TlbEntry::unserialize(Checkpoint *cp, const std::string §ion) | 51TlbEntry::unserialize(CheckpointIn &cp) |
52{ 53 UNSERIALIZE_SCALAR(tag); 54 UNSERIALIZE_SCALAR(ppn); 55 UNSERIALIZE_SCALAR(xre); 56 UNSERIALIZE_SCALAR(xwe); 57 UNSERIALIZE_SCALAR(asn); 58 UNSERIALIZE_SCALAR(asma); 59 UNSERIALIZE_SCALAR(fonr); 60 UNSERIALIZE_SCALAR(fonw); 61 UNSERIALIZE_SCALAR(valid); 62} 63 64} // namespace AlphaISA | 52{ 53 UNSERIALIZE_SCALAR(tag); 54 UNSERIALIZE_SCALAR(ppn); 55 UNSERIALIZE_SCALAR(xre); 56 UNSERIALIZE_SCALAR(xwe); 57 UNSERIALIZE_SCALAR(asn); 58 UNSERIALIZE_SCALAR(asma); 59 UNSERIALIZE_SCALAR(fonr); 60 UNSERIALIZE_SCALAR(fonw); 61 UNSERIALIZE_SCALAR(valid); 62} 63 64} // namespace AlphaISA |