diff options
Diffstat (limited to 'qtmips_machine/machinedefs.h')
-rw-r--r-- | qtmips_machine/machinedefs.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/qtmips_machine/machinedefs.h b/qtmips_machine/machinedefs.h index eb7f6d4..8ccc81c 100644 --- a/qtmips_machine/machinedefs.h +++ b/qtmips_machine/machinedefs.h @@ -58,8 +58,12 @@ enum AccessControl { }; enum ExceptionCause { - EXCAUSE_NONE = 0, - EXCAUSE_INT = 1, + EXCAUSE_NONE = 0, // Use zero as default value when no exception is pending + EXCAUSE_INT = 1, // Int is 0 on real CPU and in Cause regsiter + EXCAUSE_ADDRL = 4, + EXCAUSE_ADDRS = 5, + EXCAUSE_IBUS = 6, + EXCAUSE_DBUS = 7, EXCAUSE_SYSCALL = 8, EXCAUSE_BREAK = 9, EXCAUSE_OVERFLOW = 12, |