pagetable.cc (5004:7d94cedab264) pagetable.cc (5569:baeee670d4ce)
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
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
34namespace AlphaISA {
35
36void
37TlbEntry::serialize(std::ostream &os)
35{
38{
36 void
37 TlbEntry::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 }
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
49
50 void
51 TlbEntry::unserialize(Checkpoint *cp, const std::string &section)
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 }
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);
63}
62}
63
64} //namespace AlphaISA