cse378.tlb
Class TLBLine
java.lang.Object
cse378.AbstractLine
cse378.tlb.TLBLine
public class TLBLine
- extends AbstractLine
Class representing a line in the TLB for CSE378 lab 5
Constructor Summary |
TLBLine(int tagBits,
int associativity)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TLBLine
public TLBLine(int tagBits,
int associativity)
probe
public TaggedBlock probe(BitField b)
- Added to ensure that only a VirtualPage can be used to probe
- Overrides:
probe
in class AbstractLine
- Parameters:
b
- tag in question
- Returns:
- AbstractBlock if found, null otherwise
- Throws:
java.lang.RuntimeException
probe
public TLBEntry probe(cse378.address.VirtualPage vp)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getEntry
public TLBEntry getEntry(int index)
- getEntry returns the TLBEntry indexed by index
- Overrides:
getEntry
in class AbstractLine
- Parameters:
index
- TLBEntry within the TLBLine
- Returns:
- TLBEntry specified by index
allocEntry
public TLBEntry allocEntry()
- Description copied from class:
AbstractLine
- Pick an AbstractBlock to receive new data.
- Overrides:
allocEntry
in class AbstractLine
- Returns:
- allocated AbstractBlock