From ca242e325d823bc627ca4e6ff8eca24b888a6113 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Mon, 25 Feb 2019 11:19:39 +0100 Subject: Exceptions causes align with SPIM and add serial port range alias equivalent to SPIM. Signed-off-by: Pavel Pisa --- qtmips_machine/machinedefs.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'qtmips_machine/machinedefs.h') diff --git a/qtmips_machine/machinedefs.h b/qtmips_machine/machinedefs.h index f575648..16a72b0 100644 --- a/qtmips_machine/machinedefs.h +++ b/qtmips_machine/machinedefs.h @@ -58,12 +58,13 @@ enum AccessControl { }; enum ExceptionCause { - EXCAUSE_NONE, - EXCAUSE_BREAK, - EXCAUSE_SYSCALL, - EXCAUSE_HWBREAK, - EXCAUSE_TRAP, - EXCAUSE_OVERFLOW, + EXCAUSE_NONE = 0, + EXCAUSE_INT = 1, + EXCAUSE_SYSCALL = 8, + EXCAUSE_BREAK = 9, + EXCAUSE_OVERFLOW = 12, + EXCAUSE_TRAP = 13, + EXCAUSE_HWBREAK = 14, }; enum AluOp : std::uint8_t { -- cgit v1.2.3