From 7f338e66cbe66e32c58fa8bd2a1769fcea0b58b6 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 11 Aug 2015 16:25:35 +1000 Subject: [PATCH] Unaligned load: Remove debugging variables --- core/exception_vectors.S | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/core/exception_vectors.S b/core/exception_vectors.S index dcdee1d..00c511d 100644 --- a/core/exception_vectors.S +++ b/core/exception_vectors.S @@ -245,22 +245,6 @@ UserSyscallHandler: rfe - .section .bss - .global LoadStoreErrorFlag - .align 4 -LoadStoreErrorFlag: - .long 0 - .long 0 - .long 0 - .long 0 - - .section .data - .align 4 -PRINT_ADDR: - .string "0x%08lx '%c'\r\n" -PRINT_MULTI: - .string "a3=0x%08lx a4=0x%08lx a5=0x%08lx a6=0x%08lx a7=0x%08lx\r\n" - .text .section .vecbase.text .literal_position @@ -295,11 +279,8 @@ UserLoadStoreExceptionHandler: movi a4, 0x009002 /* l16si opcode after masking */ beq a3, a4, .Lcan_fix_16bit_signed .Lcant_fix: - /* not an l8ui or an l16ui, or not in the instruction space, so bomb out -TODO: the exception dump will have some wrong values in it */ - movi a2, PRINT_ADDR - movi a3, 0xafafafaf - call0 printf + /* not an opcode we can try to fix, so bomb out + TODO: the exception dump will have some wrong values in it */ call0 sdk_user_fatal_exception_handler .Lcan_fix_16bit_signed: