#128 closed defect (fixed)

m68k_swap_u* broken for mcf5203elite/m5200

Reported by: Ralf Corsepius Owned by: Joel Sherrill
Priority: normal Milestone: 2
Component: score Version: unknown
Severity: major Keywords:
Cc: bugs@…, ralf.corsepius@… Blocked By:
Blocking:

Description

Building the mcf5203elite breaks errors like this:

{standard input}:3664: Error: invalid instruction for this architecture; needs 68000 or higher -- statement `rorw #8,%d1' ignored

Examiniating the asm-code seems to indicate the "rorw" instructions being unconditionally applied by the m68k_swap_* macros from exec/score/m68k.h not to be supported by m68k-rtems-as -m5200.

Release:
RTEMS-CVS 20020308

How-To-Repeat:
With rtems-cvs/shapshots including dosfs:
../rtems/configure --target=m68k-rtems
make RTEMS_BSP=mcf5203elite
..
gmake[1]: Entering directory `/users/rtems/src/rtems-cvs/build/m68k/m68k-rtems/c/mcf5206elite/libfs/src/dosfs'
m68k-rtems-gcc --pipe -B../../../../../lib/ -B../../../../../mcf5206elite/lib/ -specs bsp_specs -qrtems -DHAVE_CONFIG_H -I. -ansi -fasm -O4 -fomit-frame-pointer -g -Wall -m5200 -o o-optimize/fat.o -c ../../../../../../../../rtems.work/c/src/libfs/src/dosfs/fat.c
../../../../../../../../rtems.work/c/src/libfs/src/dosfs/fat.c: In function `fat_init_clusters_chain':
../../../../../../../../rtems.work/c/src/libfs/src/dosfs/fat.c:537: warning: implicit declaration of function `fat_get_fat_cluster'
{standard input}: Assembler messages:
{standard input}:3626: Error: invalid instruction for this architecture; needs 68000 or higher -- statement `rorw #8,%d0' ignored
{standard input}:3636: Error: invalid instruction for this architecture; needs 68000 or higher -- statement `rorw #8,%d0' ignored
{standard input}:3654: Error: invalid instruction for this architecture; needs 68000 or higher -- statement `rorw #8,%d1' ignored
{standard input}:3664: Error: invalid instruction for this architecture; needs 68000 or higher -- statement `rorw #8,%d1' ignored
gmake[1]: * [o-optimize/fat.o] Error 1
gmake[1]: Leaving directory `/users/rtems/src/rtems-cvs/build/m68k/m68k-rtems/c/mcf5206elite/libfs/src/dosfs'
make:
* [all] Error 2

Attachments (1)

rtems-rc-20020315-2.diff (673 bytes) - added by Ralf Corsepius on Dec 3, 2006 at 1:31:13 PM.
rtems-rc-20020315-2.diff

Download all attachments as: .zip

Change History (2)

comment:1 Changed on Mar 15, 2002 at 12:56:52 PM by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: analyzed->closed
State-Changed-Why: Patch applied and committed.

Changed on Dec 3, 2006 at 1:31:13 PM by Ralf Corsepius

Attachment: rtems-rc-20020315-2.diff added

rtems-rc-20020315-2.diff

Note: See TracTickets for help on using tickets.