pagetable.cc (7741:340b6f01d69b) pagetable.cc (10905:a6ca6831e775)
1/*
2 * Copyright (c) 2006 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;

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

30
31#include "arch/sparc/pagetable.hh"
32#include "sim/serialize.hh"
33
34namespace SparcISA
35{
36
37void
1/*
2 * Copyright (c) 2006 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;

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

30
31#include "arch/sparc/pagetable.hh"
32#include "sim/serialize.hh"
33
34namespace SparcISA
35{
36
37void
38TlbEntry::serialize(std::ostream &os)
38TlbEntry::serialize(CheckpointOut &cp) const
39{
40 SERIALIZE_SCALAR(range.va);
41 SERIALIZE_SCALAR(range.size);
42 SERIALIZE_SCALAR(range.contextId);
43 SERIALIZE_SCALAR(range.partitionId);
44 SERIALIZE_SCALAR(range.real);
45 uint64_t entry4u = 0;
46 if (valid)
47 entry4u = pte();
48 SERIALIZE_SCALAR(entry4u);
49 SERIALIZE_SCALAR(used);
50 SERIALIZE_SCALAR(valid);
51}
52
53
54void
39{
40 SERIALIZE_SCALAR(range.va);
41 SERIALIZE_SCALAR(range.size);
42 SERIALIZE_SCALAR(range.contextId);
43 SERIALIZE_SCALAR(range.partitionId);
44 SERIALIZE_SCALAR(range.real);
45 uint64_t entry4u = 0;
46 if (valid)
47 entry4u = pte();
48 SERIALIZE_SCALAR(entry4u);
49 SERIALIZE_SCALAR(used);
50 SERIALIZE_SCALAR(valid);
51}
52
53
54void
55TlbEntry::unserialize(Checkpoint *cp, const std::string &section)
55TlbEntry::unserialize(CheckpointIn &cp)
56{
57 UNSERIALIZE_SCALAR(range.va);
58 UNSERIALIZE_SCALAR(range.size);
59 UNSERIALIZE_SCALAR(range.contextId);
60 UNSERIALIZE_SCALAR(range.partitionId);
61 UNSERIALIZE_SCALAR(range.real);
62 uint64_t entry4u;
63 UNSERIALIZE_SCALAR(entry4u);

--- 12 unchanged lines hidden ---
56{
57 UNSERIALIZE_SCALAR(range.va);
58 UNSERIALIZE_SCALAR(range.size);
59 UNSERIALIZE_SCALAR(range.contextId);
60 UNSERIALIZE_SCALAR(range.partitionId);
61 UNSERIALIZE_SCALAR(range.real);
62 uint64_t entry4u;
63 UNSERIALIZE_SCALAR(entry4u);

--- 12 unchanged lines hidden ---