summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-30 18:28:34 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-30 18:28:34 +0000
commit6358483db00ba2edfb9002ceb026d84f4941f4d8 (patch)
treec226ea19282a312dd127bbada2edeeb98f69ff75
parent37b2f343a24e55b6cd6828567061f512b5e4278d (diff)
downloadrtems-6358483db00ba2edfb9002ceb026d84f4941f4d8.tar.bz2
2001-10-30 Victor V. Vengerov <vvv@oktet.ru>
* src/m68k/rdbg_cpu_asm.S: Now compiles on ColdFire.
-rw-r--r--c/src/librdbg/ChangeLog4
-rw-r--r--c/src/librdbg/src/m68k/rdbg_cpu_asm.S8
2 files changed, 12 insertions, 0 deletions
diff --git a/c/src/librdbg/ChangeLog b/c/src/librdbg/ChangeLog
index e1cd5887cd..12deacc25c 100644
--- a/c/src/librdbg/ChangeLog
+++ b/c/src/librdbg/ChangeLog
@@ -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
diff --git a/c/src/librdbg/src/m68k/rdbg_cpu_asm.S b/c/src/librdbg/src/m68k/rdbg_cpu_asm.S
index bd2d982943..7a91300282 100644
--- a/c/src/librdbg/src/m68k/rdbg_cpu_asm.S
+++ b/c/src/librdbg/src/m68k/rdbg_cpu_asm.S
@@ -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