From f70eae4b5f63a0bb582951b2125a141b24202eee Mon Sep 17 00:00:00 2001 From: Chong Qiao Date: Fri, 18 Sep 2020 10:00:50 +0800 Subject: [PATCH] ls2k ejtag exception jump to 0x80008000. Change-Id: I7b75050c11d54045335a15804489f24910de9b8d Signed-off-by: Chong Qiao --- Targets/LS2K/ls2k/start.S | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Targets/LS2K/ls2k/start.S b/Targets/LS2K/ls2k/start.S index 4e6e56b0..187f0359 100644 --- a/Targets/LS2K/ls2k/start.S +++ b/Targets/LS2K/ls2k/start.S @@ -300,6 +300,12 @@ ext_map_and_reboot: b exc_common nop #endif + /* Debug exception */ + .align 7 /* bfc00480 */ + dmtc0 k0, $31 + li k0, 0x80008000 + jr k0 + dmtc0 k0, $31 #ifdef LS2K_STR .align 8 /* bfc00500 */ .set mips64 @@ -433,9 +439,6 @@ ext_map_and_reboot: b 1b nop #endif - /* Debug exception */ - .align 7 /* bfc00480 */ -#include "exc_ejtag.S" exc_common: PRINTSTR("\r\nCAUSE=")