From 00f369a6d49a70891bb07530779f4bf56881d412 Mon Sep 17 00:00:00 2001 From: marcan Date: Fri, 6 Mar 2009 05:23:30 +0100 Subject: [PATCH] Fix PC display for UNDF and SWI --- exception.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exception.c b/exception.c index 813539a..42d36c8 100644 --- a/exception.c +++ b/exception.c @@ -49,8 +49,10 @@ void exc_handler(u32 type, u32 spsr, u32 *regs) u32 pc, fsr; switch(type) { - case 7: // FIQ + case 1: // UND + case 2: // SWI case 3: // INSTR ABORT + case 7: // FIQ pc = regs[15] - 4; break; case 4: // DATA ABORT