|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnachos.machine.TranslationEntry
public final class TranslationEntry
A single translation between a virtual page and a physical page.
Field Summary | |
---|---|
boolean |
dirty
This flag is set to true every time the page is written by a user program. |
int |
ppn
The physical page number. |
boolean |
readOnly
If this flag is true, the user pprogram is not allowed to modify the contents of this virtual page. |
boolean |
used
This flag is set to true every time the page is read or written by a user program. |
boolean |
valid
If this flag is false, this translation entry is ignored. |
int |
vpn
The virtual page number. |
Constructor Summary | |
---|---|
TranslationEntry()
Allocate a new invalid translation entry. |
|
TranslationEntry(int vpn,
int ppn,
boolean valid,
boolean readOnly,
boolean used,
boolean dirty)
Allocate a new translation entry with the specified initial state. |
|
TranslationEntry(TranslationEntry entry)
Allocate a new translation entry, copying the contents of an existing one. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int vpn
public int ppn
public boolean valid
public boolean readOnly
public boolean used
public boolean dirty
Constructor Detail |
---|
public TranslationEntry()
public TranslationEntry(int vpn, int ppn, boolean valid, boolean readOnly, boolean used, boolean dirty)
vpn
- the virtual page numben.ppn
- the physical page number.valid
- the valid bit.readOnly
- the read-only bit.used
- the used bit.dirty
- the dirty bit.public TranslationEntry(TranslationEntry entry)
entry
- the translation entry to copy.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |