sim.arch
Class NullArchitecture

java.lang.Object
  extended by sim.arch.Architecture
      extended by sim.arch.NullArchitecture

public class NullArchitecture
extends Architecture

An architecture that doesn't support exceptions, the MIPS coprocessors, or most anything else.


Field Summary
 
Fields inherited from class sim.arch.Architecture
ARCH_CLASSIC, ARCH_NULL, ARCH_SIMPLE, machine
 
Constructor Summary
NullArchitecture(DebuggableMachine mach)
           
 
Method Summary
 void dumpState(java.io.PrintStream out)
           
 void initialize()
           
 void raiseException(int type)
           
 PhysicalAddress readMemBase()
           
 int readMemLength()
           
 void rfe()
           
 java.lang.String shortState()
           
 PhysicalAddress translateAddress(VirtualAddress vaddr)
           
 int type()
          Returns one of the architecture types defined as static final int's.
 boolean userMode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullArchitecture

public NullArchitecture(DebuggableMachine mach)
Method Detail

initialize

public void initialize()
Specified by:
initialize in class Architecture

dumpState

public void dumpState(java.io.PrintStream out)
Specified by:
dumpState in class Architecture

shortState

public java.lang.String shortState()
Specified by:
shortState in class Architecture

raiseException

public void raiseException(int type)
                    throws DebuggableMachineException
Specified by:
raiseException in class Architecture
Throws:
DebuggableMachineException

rfe

public void rfe()
         throws DebuggableMachineException
Specified by:
rfe in class Architecture
Throws:
DebuggableMachineException

userMode

public boolean userMode()
Specified by:
userMode in class Architecture

readMemBase

public PhysicalAddress readMemBase()
Specified by:
readMemBase in class Architecture

readMemLength

public int readMemLength()
Specified by:
readMemLength in class Architecture

translateAddress

public PhysicalAddress translateAddress(VirtualAddress vaddr)
                                 throws DebuggableMachineException
Throws:
DebuggableMachineException

type

public int type()
Description copied from class: Architecture
Returns one of the architecture types defined as static final int's.

Specified by:
type in class Architecture