Prebuilt GNU toolchain for m68k-elf help needed

Sysprogs forums Forums Other tools & products Prebuilt GNU toolchain for m68k-elf help needed

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #579
    A31Chris
    Participant

    I have downloaded this for a system using a motorola 68000.

    http://gnutoolchains.com/m68k-elf/

    However its producing 68020 output.

    gdb) c
    Continuing.
    
    Program received signal SIGILL, Illegal instruction.
    DrawString (x=1, y=1, str=0x43a8 "Hello Jag Users") at jag.c:42
    42          DrawChar (x, y, str[cnt]);
    (gdb) disas
    Dump of assembler code for function DrawString:
    0x0000430c <+0>:     linkw %fp,#0
    0x00004310 <+4>: moveml %d2-%d3/%a2-%a3,%sp@-
    0x00004314 <+8>: movel %fp@(8),%d2
    0x00004318 <+12>: movel %fp@(12),%d3
    0x0000431c <+16>: moveal %fp@(16),%a2
    0x00004320 <+20>: moveb %a2@,%d0
    0x00004322 <+22>: beqs 0x433e
    0x00004324 <+24>: addql #1,%a2
    0x00004326 <+26>: lea %pc@(0x42c6 ),%a3
    => 0x0000432a <+30>: extbl %d0
    0x0000432c <+32>: movel %d0,%sp@-
    0x0000432e <+34>: movel %d3,%sp@-
    0x00004330 <+36>: movel %d2,%sp@-
    0x00004332 <+38>: jsr %a3@
    0x00004334 <+40>: addql #8,%d2
    0x00004336 <+42>: moveb %a2@+,%d0
    0x00004338 <+44>: lea %sp@(12),%sp
    0x0000433c <+48>: bnes 0x432a
    0x0000433e <+50>: moveml %fp@(-16),%d2-%d3/%a2-%a3
    0x00004344 <+56>: unlk %fp
    0x00004346 <+58>: rts
    End of assembler dump.
    (gdb)

    Short of recompiling it is there anyone who knows what flag I may need to put in the command line to make it default to 68000?

    #2458
    A31Chris
    Participant

    Whoops I think I found it. Was using wrong search criteria.

    http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/M680x0-Options.html

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.