diff options
author | Kevin Lim <ktlim@umich.edu> | 2006-06-29 21:38:16 -0400 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2006-06-29 21:38:16 -0400 |
commit | 0fbecab797ffe7fc68e3a9af9fd0a21df37ec635 (patch) | |
tree | 4983720f62cd4fc1ee57690678228e5aca75d531 /src/mem/page_table.hh | |
parent | ad6788493c09aec456a1136f126abde7000696ab (diff) | |
parent | de90be348239a0a58ebb659dfc6a2f2fe5909292 (diff) | |
download | gem5-0fbecab797ffe7fc68e3a9af9fd0a21df37ec635.tar.xz |
Merge ktlim@zizzer:/bk/newmem
into zamp.eecs.umich.edu:/z/ktlim2/clean/newmem-merge
--HG--
extra : convert_revision : 0756f7f1f63fae472e0ef1d20e9eb38e56de78c8
Diffstat (limited to 'src/mem/page_table.hh')
-rw-r--r-- | src/mem/page_table.hh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mem/page_table.hh b/src/mem/page_table.hh index f7212d423..494c0ce9a 100644 --- a/src/mem/page_table.hh +++ b/src/mem/page_table.hh @@ -37,9 +37,9 @@ #define __PAGE_TABLE__ #include <string> -#include <map> #include "arch/isa_traits.hh" +#include "base/hashmap.hh" #include "base/trace.hh" #include "mem/request.hh" #include "mem/packet.hh" @@ -53,7 +53,14 @@ class System; class PageTable { protected: - std::map<Addr,Addr> pTable; + m5::hash_map<Addr,Addr> pTable; + + struct cacheElement { + Addr paddr; + Addr vaddr; + } ; + + struct cacheElement pTableCache[3]; const Addr pageSize; const Addr offsetMask; |