pagetable.cc (6378:4a2ff62c3b4f) pagetable.cc (10905:a6ca6831e775)
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

--- 24 unchanged lines hidden (view full) ---

33
34#include "arch/mips/pagetable.hh"
35#include "sim/serialize.hh"
36
37namespace MipsISA
38{
39
40void
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

--- 24 unchanged lines hidden (view full) ---

33
34#include "arch/mips/pagetable.hh"
35#include "sim/serialize.hh"
36
37namespace MipsISA
38{
39
40void
41PTE::serialize(std::ostream &os)
41PTE::serialize(CheckpointOut &cp) const
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}
58
59void
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}
58
59void
60PTE::unserialize(Checkpoint *cp, const std::string &section)
60PTE::unserialize(CheckpointIn &cp)
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}
77
78}
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}
77
78}