2001-10-30 Victor V. Vengerov <vvv@oktet.ru>

* src/m68k/rdbg_cpu_asm.S: Now compiles on ColdFire.
This commit is contained in:
Joel Sherrill
2001-10-30 18:28:34 +00:00
parent 37b2f343a2
commit 6358483db0
2 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
2001-10-30 Victor V. Vengerov <vvv@oktet.ru>
* src/m68k/rdbg_cpu_asm.S: Now compiles on ColdFire.
2001-10-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Fix latent bug exposed by removal of config.cache's

View File

@@ -116,7 +116,11 @@ SYM (excHandler):
lea a0@(2),a0 | skip vector
#endif
lea a0@(6),a0 | a0 = orig sp
#if ( M68K_COLDFIRE_ARCH == 0 )
cmpiw #3,d0 | bus error or address error ?
#else
cmpi.l #3,d0
#endif
bgt 1f | if >3 then normal exc
#if ( M68K_HAS_VBR == 1 )
lea a1@(2*29),a0
@@ -132,7 +136,11 @@ SYM (excHandler):
movel d0,a7@ | vecnum
movel d1,a7@(4) | sr
movel a1@(PC_OFFSET),d1 | d1 = pc
#if ( M68K_COLDFIRE_ARCH == 0 )
cmpiw #47,d0 | trap #15, breakpoint?
#else
cmpil #47,d0 | trap #15, breakpoint?
#endif
bne 2f
subql #2,d1 | real PC is at trap insn
2: movel d1,a7@(8) | store pc to exframe struct