Handling Exceptions
  • When an exception is detected, the machine:
    • Flushes the instructions from the pipeline that include the instruction causing the exception and the ones that entered the pipeline afterwards.
    • Begins fetching instructions at the address of the exception handler routine.
    • Stores the address of the instruction causing the exception in the EPC (Exception Program Counter).
Chapter 6: Enhancing Performance with Pipelining - 68 of 88