cse378.tlb
Class TLBEntry
java.lang.Object
cse378.AbstractBlock
cse378.TaggedBlock
cse378.tlb.TLBEntry
public class TLBEntry
- extends TaggedBlock
Field Summary |
(package private) cse378.address.PhysicalPage |
page
|
Constructor Summary |
TLBEntry(int tagBits,
int id)
|
Method Summary |
boolean |
equals(java.lang.Object o)
|
cse378.address.PhysicalPage |
getPage()
|
cse378.address.VirtualPage |
getTag()
getTag returns the tag |
int |
hashCode()
hashcode computation |
boolean |
hasTag(BitField tag)
Checks this entry for a matching Tag |
boolean |
hasTag(cse378.address.VirtualPage tag)
|
void |
setPage(cse378.address.PhysicalPage page)
|
void |
setTag(BitField tag)
writeTag writes the new tag |
void |
setTag(cse378.address.VirtualPage tag)
Update the current entry with a new one |
java.lang.String |
toString()
|
void |
update(BitField tag)
Update the current entry with a new one |
void |
update(cse378.address.VirtualPage tag)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
page
cse378.address.PhysicalPage page
TLBEntry
TLBEntry(int tagBits,
int id)
getPage
public cse378.address.PhysicalPage getPage()
setPage
public void setPage(cse378.address.PhysicalPage page)
hashCode
public int hashCode()
- Description copied from class:
AbstractBlock
- hashcode computation
- Overrides:
hashCode
in class AbstractBlock
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class TaggedBlock
getTag
public cse378.address.VirtualPage getTag()
- Description copied from class:
TaggedBlock
- getTag returns the tag
- Overrides:
getTag
in class TaggedBlock
- Returns:
- tag of cacheline
hasTag
public boolean hasTag(BitField tag)
- Description copied from class:
TaggedBlock
- Checks this entry for a matching Tag
- Overrides:
hasTag
in class TaggedBlock
- Returns:
- true if the tags match
hasTag
public boolean hasTag(cse378.address.VirtualPage tag)
setTag
public void setTag(BitField tag)
- Description copied from class:
TaggedBlock
- writeTag writes the new tag
- Overrides:
setTag
in class TaggedBlock
- Parameters:
tag
- new tag for the cacheline
setTag
public void setTag(cse378.address.VirtualPage tag)
- Update the current entry with a new one
- Parameters:
tag
- new Tag
update
public void update(BitField tag)
- Description copied from class:
TaggedBlock
- Update the current entry with a new one
- Overrides:
update
in class TaggedBlock
- Parameters:
tag
- new Tag
update
public void update(cse378.address.VirtualPage tag)