34 #ifndef __MEM_CACHE_TAGS_SECTOR_BLK_HH__ 35 #define __MEM_CACHE_TAGS_SECTOR_BLK_HH__ 128 void insert(
const Addr tag,
const bool is_secure,
const int src_master_ID,
129 const uint32_t task_ID)
override;
136 std::string
print()
const override;
184 uint8_t getNumValid()
const;
212 void validateSubBlk();
217 void invalidateSubBlk();
230 void setPosition(
const uint32_t
set,
const uint32_t way)
override;
233 #endif //__MEM_CACHE_TAGS_SECTOR_BLK_HH__ const SectorBlk * getSectorBlock() const
Get sector block associated to this block.
std::string print() const override
Pretty-print sector offset and other CacheBlk information.
bool isValid() const
Checks that a block is valid.
void setValid() override
Set valid bit and inform sector block.
int _sectorOffset
The offset of this sub-block in the sector.
Addr tag
Data block tag value.
A sector is composed of sub-blocks, and each sub-block has information regarding its sector and a poi...
Addr _tag
Sector tag value.
bool _secureBit
Whether sector blk is in secure-space or not.
void invalidate() override
Invalidate the block and inform sector block.
virtual void setPosition(const uint32_t set, const uint32_t way)
Set both the set and way.
bool isSecure() const
Check if this block holds data from the secure memory space.
SectorBlk * _sectorBlk
Sector block associated to this block.
void setSectorBlock(SectorBlk *sector_blk)
Set sector block associated to this block.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
void setSectorOffset(const int sector_offset)
Set offset of this sub-block within the sector.
int getSectorOffset() const
Get offset of this sub-block within the sector.
Definitions of a simple cache block class.
SectorSubBlk & operator=(const SectorSubBlk &)=delete
A replaceable entry is a basic entry in a 2d table-like structure that needs to have replacement func...
uint8_t _validCounter
Counter of the number of valid sub-blocks.
void insert(const Addr tag, const bool is_secure, const int src_master_ID, const uint32_t task_ID) override
Set member variables when a block insertion occurs.
void setSecure() override
Set secure bit and inform sector block.
Addr getTag() const
Get tag associated to this block.