pagetable.hh (10558:426665ec11a9) pagetable.hh (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

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

69 * The next few variables are put in as optimizations to reduce
70 * TLB lookup overheads. For a given Mask, what is the address shift
71 * amount, and what is the OffsetMask
72 */
73 int AddrShiftAmount;
74 int OffsetMask;
75
76 bool Valid() { return (V0 | V1); };
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

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

69 * The next few variables are put in as optimizations to reduce
70 * TLB lookup overheads. For a given Mask, what is the address shift
71 * amount, and what is the OffsetMask
72 */
73 int AddrShiftAmount;
74 int OffsetMask;
75
76 bool Valid() { return (V0 | V1); };
77 void serialize(std::ostream &os);
78 void unserialize(Checkpoint *cp, const std::string &section);
77 void serialize(CheckpointOut &cp) const;
78 void unserialize(CheckpointIn &cp);
79};
80
81// WARN: This particular TLB entry is not necessarily conformed to MIPS ISA
82struct TlbEntry
83{
84 Addr _pageStart;
85 TlbEntry() {}
86 TlbEntry(Addr asn, Addr vaddr, Addr paddr,

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

95 Addr pageStart()
96 {
97 return _pageStart;
98 }
99
100 void
101 updateVaddr(Addr new_vaddr) {}
102
79};
80
81// WARN: This particular TLB entry is not necessarily conformed to MIPS ISA
82struct TlbEntry
83{
84 Addr _pageStart;
85 TlbEntry() {}
86 TlbEntry(Addr asn, Addr vaddr, Addr paddr,

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

95 Addr pageStart()
96 {
97 return _pageStart;
98 }
99
100 void
101 updateVaddr(Addr new_vaddr) {}
102
103 void serialize(std::ostream &os)
103 void serialize(CheckpointOut &cp) const
104 {
105 SERIALIZE_SCALAR(_pageStart);
106 }
107
104 {
105 SERIALIZE_SCALAR(_pageStart);
106 }
107
108 void unserialize(Checkpoint *cp, const std::string &section)
108 void unserialize(CheckpointIn &cp)
109 {
110 UNSERIALIZE_SCALAR(_pageStart);
111 }
112
113};
114
115};
116#endif // __ARCH_MIPS_PAGETABLE_H__
117
109 {
110 UNSERIALIZE_SCALAR(_pageStart);
111 }
112
113};
114
115};
116#endif // __ARCH_MIPS_PAGETABLE_H__
117