Skip to content
Snippets Groups Projects
Commit 9145d821 authored by Geo Ster's avatar Geo Ster
Browse files

Add exception support

* This commit adds support for handling exceptions for our virtual
MIPS CPU. The implementation is based on the provided document's chapter
on Exception handling, and more specifically on the flowchart of level 1
exceptions (Section 5.1.1). To check if the current instruction is in a delay
slot we use a bool and cache it together with the currently executing instruction.

* The current implementation is only partially complete, since it's missing level 2
exception handling, but I reckon that those exceptions won't be needed
for a long time. This acts more as a foundation for implementing interrupts
which are 100% required for emulating even the most basic of systems.
parent 327c71d0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment