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; --- 17 unchanged lines hidden (view full) --- 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Gabe Black 29 */ 30 31#include "arch/alpha/pagetable.hh" 32#include "sim/serialize.hh" 33 |
34namespace AlphaISA { 35 36void 37TlbEntry::serialize(std::ostream &os) |
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) 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 |