tlb.hh (5124:3d8c50376609) tlb.hh (5140:2fd7f8477b4c)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

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

103 void insert(Addr vpn, TlbEntry &entry);
104
105 void invalidateAll();
106
107 void invalidateNonGlobal();
108
109 void demapPage(Addr va);
110
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

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

103 void insert(Addr vpn, TlbEntry &entry);
104
105 void invalidateAll();
106
107 void invalidateNonGlobal();
108
109 void demapPage(Addr va);
110
111 template<class TlbFault>
112 Fault translate(RequestPtr &req, ThreadContext *tc,
113 bool write, bool execute);
114
111 public:
112 // Checkpointing
113 virtual void serialize(std::ostream &os);
114 virtual void unserialize(Checkpoint *cp, const std::string &section);
115 };
116
117 class ITB : public TLB
118 {

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

129
130 class DTB : public TLB
131 {
132 public:
133 typedef X86DTBParams Params;
134 DTB(const Params *p) : TLB(p)
135 {
136 }
115 public:
116 // Checkpointing
117 virtual void serialize(std::ostream &os);
118 virtual void unserialize(Checkpoint *cp, const std::string &section);
119 };
120
121 class ITB : public TLB
122 {

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

133
134 class DTB : public TLB
135 {
136 public:
137 typedef X86DTBParams Params;
138 DTB(const Params *p) : TLB(p)
139 {
140 }
137
138 Fault translate(RequestPtr &req, ThreadContext *tc, bool write);
139#if FULL_SYSTEM
140 Tick doMmuRegRead(ThreadContext *tc, Packet *pkt);
141 Tick doMmuRegWrite(ThreadContext *tc, Packet *pkt);
142#endif
143
144 // Checkpointing
145 virtual void serialize(std::ostream &os);
146 virtual void unserialize(Checkpoint *cp, const std::string &section);
147 };
148}
149
150#endif // __ARCH_X86_TLB_HH__
141 Fault translate(RequestPtr &req, ThreadContext *tc, bool write);
142#if FULL_SYSTEM
143 Tick doMmuRegRead(ThreadContext *tc, Packet *pkt);
144 Tick doMmuRegWrite(ThreadContext *tc, Packet *pkt);
145#endif
146
147 // Checkpointing
148 virtual void serialize(std::ostream &os);
149 virtual void unserialize(Checkpoint *cp, const std::string &section);
150 };
151}
152
153#endif // __ARCH_X86_TLB_HH__