hades.models.mips.core
Class ExceptionGenerator
java.lang.Object
hades.models.mips.core.ExceptionGenerator
- All Implemented Interfaces:
- Resetable
- public class ExceptionGenerator
- extends java.lang.Object
- implements Resetable
Method Summary |
void |
generateAddressException(int instrFrameNumber,
int exceptionCode,
int coproNumber,
int badAdr)
Special behaviour for address exceptions |
void |
generateException(int instrFrameNumber,
int exceptionCode,
int coproNumber)
All exceptions are generated here |
boolean |
getLog()
|
void |
por()
Hardware reset or power on reset |
void |
reset()
Software reset, initiated by a special assembly statement or an
operating system call |
void |
setLog(boolean newDebug)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
partHandler
protected PartHandler partHandler
debug
protected boolean debug
EXCEPTEXTINT
public static final int EXCEPTEXTINT
- See Also:
- Constant Field Values
EXCEPTTLBMOD
public static final int EXCEPTTLBMOD
- See Also:
- Constant Field Values
EXCEPTTLBMISSLOAD
public static final int EXCEPTTLBMISSLOAD
- See Also:
- Constant Field Values
EXCEPTTLBMISSSTORE
public static final int EXCEPTTLBMISSSTORE
- See Also:
- Constant Field Values
EXCEPTADRERRLOAD
public static final int EXCEPTADRERRLOAD
- See Also:
- Constant Field Values
EXCEPTADRERRSTORE
public static final int EXCEPTADRERRSTORE
- See Also:
- Constant Field Values
EXCEPTBUSERRINSTR
public static final int EXCEPTBUSERRINSTR
- See Also:
- Constant Field Values
EXCEPTBUSERRDATA
public static final int EXCEPTBUSERRDATA
- See Also:
- Constant Field Values
EXCEPTSYSCALL
public static final int EXCEPTSYSCALL
- See Also:
- Constant Field Values
EXCEPTBREAKPOINT
public static final int EXCEPTBREAKPOINT
- See Also:
- Constant Field Values
EXCEPTRESERVEDINSTR
public static final int EXCEPTRESERVEDINSTR
- See Also:
- Constant Field Values
EXCEPTCOPROUNUSABLE
public static final int EXCEPTCOPROUNUSABLE
- See Also:
- Constant Field Values
EXCEPTOVERFLOW
public static final int EXCEPTOVERFLOW
- See Also:
- Constant Field Values
EXCEPTRESET
public static final int EXCEPTRESET
- See Also:
- Constant Field Values
ExceptionGenerator
public ExceptionGenerator(PartHandler newPartHandler)
por
public void por()
- Description copied from interface:
Resetable
- Hardware reset or power on reset
- Specified by:
por
in interface Resetable
reset
public void reset()
- Description copied from interface:
Resetable
- Software reset, initiated by a special assembly statement or an
operating system call
- Specified by:
reset
in interface Resetable
setLog
public void setLog(boolean newDebug)
getLog
public boolean getLog()
generateAddressException
public void generateAddressException(int instrFrameNumber,
int exceptionCode,
int coproNumber,
int badAdr)
- Special behaviour for address exceptions
generateException
public void generateException(int instrFrameNumber,
int exceptionCode,
int coproNumber)
- All exceptions are generated here