gem5
|
A sparse map from an Addr to a Value, stored in page chunks. More...
#include <decode_cache.hh>
Classes | |
struct | CachePage |
Public Member Functions | |
AddrMap () | |
Constructor. More... | |
Value & | lookup (Addr addr) |
Protected Types | |
typedef std::unordered_map < Addr, CachePage * > | PageMap |
typedef PageMap::iterator | PageIt |
Protected Member Functions | |
void | update (PageIt recentest) |
Update the mini cache of recent lookups. More... | |
CachePage * | getPage (Addr addr) |
Attempt to find the CacheePage which goes with a particular address. More... | |
Protected Attributes | |
PageIt | recent [2] |
PageMap | pageMap |
A sparse map from an Addr to a Value, stored in page chunks.
Definition at line 54 of file decode_cache.hh.
|
protected |
Definition at line 63 of file decode_cache.hh.
|
protected |
Definition at line 62 of file decode_cache.hh.
|
inline |
Constructor.
Definition at line 115 of file decode_cache.hh.
|
inlineprotected |
Attempt to find the CacheePage which goes with a particular address.
First check the small cache of recent results, then actually look in the hash map.
addr | The address to look up. |
Definition at line 82 of file decode_cache.hh.
Referenced by DecodeCache::AddrMap< RefCountingPtr >::lookup().
|
inline |
Definition at line 121 of file decode_cache.hh.
Referenced by X86ISA::Decoder::doResetState().
|
inlineprotected |
Update the mini cache of recent lookups.
recentest | The most recent result; |
Definition at line 71 of file decode_cache.hh.
Referenced by DecodeCache::AddrMap< RefCountingPtr >::getPage().
|
protected |
Definition at line 66 of file decode_cache.hh.
Referenced by DecodeCache::AddrMap< RefCountingPtr >::AddrMap(), and DecodeCache::AddrMap< RefCountingPtr >::getPage().
|
protected |
Definition at line 65 of file decode_cache.hh.
Referenced by DecodeCache::AddrMap< RefCountingPtr >::AddrMap(), DecodeCache::AddrMap< RefCountingPtr >::getPage(), and DecodeCache::AddrMap< RefCountingPtr >::update().