gem5
|
An associative set of cache blocks. More...
#include <cacheset.hh>
Public Member Functions | |
Blktype * | findBlk (Addr tag, bool is_secure, int &way_id) const |
Find a block matching the tag in this set. More... | |
Blktype * | findBlk (Addr tag, bool is_secure) const |
void | moveToHead (Blktype *blk) |
Move the given block to the head of the list. More... | |
void | moveToTail (Blktype *blk) |
Move the given block to the tail of the list. More... | |
Public Attributes | |
int | assoc |
The associativity of this set. More... | |
Blktype ** | blks |
Cache blocks in this set, maintained in LRU order 0 = MRU. More... | |
An associative set of cache blocks.
Definition at line 57 of file cacheset.hh.
Blktype * CacheSet< Blktype >::findBlk | ( | Addr | tag, |
bool | is_secure, | ||
int & | way_id | ||
) | const |
Find a block matching the tag in this set.
way_id | The id of the way that matches the tag. |
tag | The Tag to find. |
is_secure | True if the target memory space is secure. |
Way_id returns the id of the way that matches the block If no block is found way_id is set to assoc.
Definition at line 92 of file cacheset.hh.
References ArmISA::i.
Referenced by BaseSetAssoc::accessBlock(), and BaseSetAssoc::findBlock().
Definition at line 111 of file cacheset.hh.
void CacheSet< Blktype >::moveToHead | ( | Blktype * | blk | ) |
Move the given block to the head of the list.
blk | The block to move. |
Definition at line 119 of file cacheset.hh.
References ArmISA::i.
Referenced by LRU::accessBlock(), and LRU::insertBlock().
void CacheSet< Blktype >::moveToTail | ( | Blktype * | blk | ) |
Move the given block to the tail of the list.
blk | The block to move |
Definition at line 141 of file cacheset.hh.
References ArmISA::i.
Referenced by LRU::invalidate().
int CacheSet< Blktype >::assoc |
The associativity of this set.
Definition at line 61 of file cacheset.hh.
Referenced by BaseSetAssoc::BaseSetAssoc().
Blktype** CacheSet< Blktype >::blks |
Cache blocks in this set, maintained in LRU order 0 = MRU.
Definition at line 64 of file cacheset.hh.
Referenced by BaseSetAssoc::BaseSetAssoc(), BaseSetAssoc::findBlockBySetAndWay(), RandomRepl::findVictim(), LRU::findVictim(), BaseSetAssoc::findVictim(), and BaseSetAssoc::print().