tlb.hh (5237:6c819dbe8045) tlb.hh (5242:280a99136427)
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 *

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

210 };
211
212 Walker walker;
213
214#endif
215
216 Port *getPort(const std::string &if_name, int idx = -1);
217
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 *

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

210 };
211
212 Walker walker;
213
214#endif
215
216 Port *getPort(const std::string &if_name, int idx = -1);
217
218 public:
219 void invalidateAll();
220
221 void invalidateNonGlobal();
222
223 void demapPage(Addr va);
224
218 protected:
219 int size;
220
221 TlbEntry * tlb;
222
223 typedef std::list<TlbEntry *> EntryList;
224 EntryList freeList;
225 EntryList entryList;
226
227 void insert(Addr vpn, TlbEntry &entry);
228
225 protected:
226 int size;
227
228 TlbEntry * tlb;
229
230 typedef std::list<TlbEntry *> EntryList;
231 EntryList freeList;
232 EntryList entryList;
233
234 void insert(Addr vpn, TlbEntry &entry);
235
229 void invalidateAll();
230
231 void invalidateNonGlobal();
232
233 void demapPage(Addr va);
234
235 template<class TlbFault>
236 Fault translate(RequestPtr &req, ThreadContext *tc,
237 bool write, bool execute);
238
239 public:
240 // Checkpointing
241 virtual void serialize(std::ostream &os);
242 virtual void unserialize(Checkpoint *cp, const std::string &section);

--- 39 unchanged lines hidden ---
236 template<class TlbFault>
237 Fault translate(RequestPtr &req, ThreadContext *tc,
238 bool write, bool execute);
239
240 public:
241 // Checkpointing
242 virtual void serialize(std::ostream &os);
243 virtual void unserialize(Checkpoint *cp, const std::string &section);

--- 39 unchanged lines hidden ---