cse378
Class TaggedBlock
java.lang.Object
cse378.AbstractBlock
cse378.TaggedBlock
- Direct Known Subclasses:
- CacheBlock, PageTableEntry, TLBEntry
public abstract class TaggedBlock
- extends AbstractBlock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
tag
protected BitField tag
tagBits
protected final byte tagBits
TaggedBlock
public TaggedBlock(int tagBits,
int id)
getTag
public BitField getTag()
- getTag returns the tag
- Returns:
- tag of cacheline
setTag
public void setTag(BitField tag)
- writeTag writes the new tag
- Parameters:
tag
- new tag for the cacheline
hasTag
public boolean hasTag(BitField tag)
- Checks this entry for a matching Tag
- Parameters:
tag
-
- Returns:
- true if the tags match
update
public void update(BitField tag)
- Update the current entry with a new one
- Parameters:
tag
- new Tag
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object