This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Opcode trap error on MC68010


Toralf Lund wrote:

I've now been able to load and start my m68k cross compiled code, but I get an opcode trap during execution:

PHYSICAL ADDRESS=00001000

OPCO TRAP ERROR


PC=00009C2A ------------> 4A89 DC.W $4A89 SR=2410=.S4X.... US=000FFD00 SS=000FFFE4 VBR=00000000 SFC=07 DFC=06 D0=FFFFFFFF D1=000127E8 D2=00000000 D3=00000000 D4=00000000 D5=00000000 D6=00000000 D7=00000000 A0=00011FD0 A1=00000000 A2=00000000 A3=00000000 A4=00000000 A5=00000000 A6=000FFFE4 A7=000FFFE4

I believe 00009C2A is part of the atexit routine (called before main), and according to objdump, the instruction is

9c2a: 4a89 tstl %a1

Whooha. Messed up a bit, there. I forgot to include -m68000 on link line, so I got the cpu32 version of libc instead of the m68000 one. After updating the linker command I have "b2fc 0000 cmpaw #0,%a1" at this location, and the code doesn't crash. Well, actually, it does, but somewhere else. I need to debug a bit before I can tell more about that...


--
- Toralf



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]