SpecSim Programmer Manual

static void tryTrapInterrupt ( try_block *t, exception_block *f, ... )

Exception handling

Documentation

This function executes a behavior with exception handlers and interrupt handles set up. During the execution of the behavior, if an exception (one of the events specified in the _specc::exception_block object) occurs, depending upon the nature of the exception, different action will be taken. If it is an trap, the behavior will be aborted and the exception handlers with be executed. If it is an interrupt, the behavior will be freezed until the corresponding interrupt handler completes its execution.

Returns:
none
Parameters:
t - the _specc::try_block object which encapsultes the information on the behavior to be executed and monitored.
e - the _specc::exception_block object which encapsulates the information of the exception handler.
... - a null-terminated list of exception handlers.

alphabetic index hierarchy of classes


generated by doc++