dioscuri.module.cpu32
Class SegmentFactory.AbstractTSS

java.lang.Object
  extended by dioscuri.module.cpu32.Segment
      extended by dioscuri.module.cpu32.SegmentFactory.AbstractTSS
All Implemented Interfaces:
Hibernatable
Enclosing class:
SegmentFactory

public abstract static class SegmentFactory.AbstractTSS
extends Segment


Constructor Summary
SegmentFactory.AbstractTSS(Memory memory, int selector, long descriptor)
           
 
Method Summary
 void checkAddress(int offset)
           
 int dumpState(java.io.DataOutput output)
           
 int getBase()
           
 byte getByte(int offset)
           
 boolean getDefaultSizeFlag()
           
 int getDoubleWord(int offset)
           
 int getDPL()
           
 int getLimit()
           
 long getQuadWord(int offset)
           
 int getRPL()
           
 int getSelector()
           
 int getType()
           
 short getWord(int offset)
           
 void invalidateAddress(int address)
           
 boolean isPresent()
           
 void restoreCPUState(Processor cpu)
           
 void saveCPUState(Processor cpu)
           
 void setAddressSpace(AddressSpace memory)
           
 void setByte(int offset, byte data)
           
 void setDoubleWord(int offset, int data)
           
 void setQuadWord(int offset, long data)
           
 void setRPL(int cpl)
           
 boolean setSelector(int selector)
           
 void setWord(int offset, short data)
           
 int translateAddressRead(int offset)
           
 int translateAddressWrite(int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentFactory.AbstractTSS

public SegmentFactory.AbstractTSS(Memory memory,
                                  int selector,
                                  long descriptor)
Parameters:
memory -
selector -
descriptor -
Method Detail

saveCPUState

public void saveCPUState(Processor cpu)
Parameters:
cpu -

restoreCPUState

public void restoreCPUState(Processor cpu)
Parameters:
cpu -

getByte

public byte getByte(int offset)
Parameters:
offset -
Returns:
-

getWord

public short getWord(int offset)
Parameters:
offset -
Returns:
-

getDoubleWord

public int getDoubleWord(int offset)
Parameters:
offset -
Returns:
-

getQuadWord

public long getQuadWord(int offset)
Parameters:
offset -
Returns:
-

setByte

public void setByte(int offset,
                    byte data)

setWord

public void setWord(int offset,
                    short data)

setDoubleWord

public void setDoubleWord(int offset,
                          int data)

setQuadWord

public void setQuadWord(int offset,
                        long data)

dumpState

public int dumpState(java.io.DataOutput output)
              throws java.io.IOException
Specified by:
dumpState in class Segment
Returns:
-
Throws:
java.io.IOException

isPresent

public boolean isPresent()
Returns:
-

translateAddressRead

public final int translateAddressRead(int offset)
Returns:
-

translateAddressWrite

public final int translateAddressWrite(int offset)
Returns:
-

checkAddress

public final void checkAddress(int offset)

getDefaultSizeFlag

public boolean getDefaultSizeFlag()
Returns:
-

getLimit

public int getLimit()
Returns:
-

getBase

public int getBase()
Returns:
-

getSelector

public int getSelector()
Returns:
-

getRPL

public int getRPL()
Returns:
-

getDPL

public int getDPL()
Returns:
-

setRPL

public void setRPL(int cpl)

setAddressSpace

public void setAddressSpace(AddressSpace memory)
Specified by:
setAddressSpace in class Segment

invalidateAddress

public void invalidateAddress(int address)

getType

public int getType()
Specified by:
getType in class Segment
Returns:
-

setSelector

public boolean setSelector(int selector)
Specified by:
setSelector in class Segment
Returns:
-