Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

8.6. The Nios II Instruction-Related Exception Handler

The software exception funnel lets you handle instruction-related exceptions, such as the advanced exceptions. The instruction-related exception handler is a custom handler. Your software registers the instruction-related exception handler with the HAL at startup time.
Note: The hal.enable_instruction_related_exceptions_api setting must be enabled in the BSP in order for you to register an instruction-related exception handler.

For more information about the Nios II instruction-related exceptions, refer to the "Programming Model" chapter of the Nios II Processor Reference Handbook.

For more information about enabling instruction-related exception handlers, refer to “Settings Managed by the Software Build Tools” in the "Nios II Software Build Tools Reference" section.

When you register an instruction-related exception handler, it takes the place of the break/optional trap logic.

When you remove the instruction-related exception handler, the HAL restores the default break/optional trap logic.