commit ea8243df5b60e90e830a5cf8a76dcbf19093785d
parent 780993887f4047bf4c104d4174a22486c98763b0
Author: Brian Swetland <swetland@frotz.net>
Date: Fri, 13 May 2022 22:12:30 -0700
print_exception: fix typo in cause decoder
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/src/print-exception.c b/hw/src/print-exception.c
@@ -21,10 +21,10 @@ static const char* cause_name(uint32_t n) {
case 7: return "Store Address Fault";
case 8: return "User Mode ECALL";
case 9: return "Supervisor Mode ECALL";
- case 10: return "Machine Mode ECALL";
+ case 11: return "Machine Mode ECALL";
case 12: return "Instruction Page Fault";
case 13: return "Load Page Fault";
- case 14: return "Store Page Fault";
+ case 15: return "Store Page Fault";
}
}
return "Unknown";