patches/newlib/1.20.0/100-fix-unaligned-access-memcpy-m68k.patch
changeset 3047 6d88d6558b7a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/newlib/1.20.0/100-fix-unaligned-access-memcpy-m68k.patch	Sun Sep 16 14:12:22 2012 -0400
     1.3 @@ -0,0 +1,27 @@
     1.4 +The m68k mcpu processor does not like unaligned access
     1.5 +
     1.6 +Disable at least mcpu32, m68010 and m68020. These processors certainly
     1.7 +do not like unaligned accesses.
     1.8 +
     1.9 +Signed-off-by: Remy Bohmer <linux@bohmer.net>
    1.10 +[yann.morin.1998@anciens.enib.fr: update for 1.19.0 from 1.18.0]
    1.11 +Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
    1.12 +[austinpmorton@gmail.com: update for 1.20.0 from 1.19.0]
    1.13 +Signed-off-by: Austin Morton <austinpmorton@gmail.com>
    1.14 +---
    1.15 + newlib/libc/machine/m68k/memcpy.S |    2 +-
    1.16 + 1 file changed, 1 insertion(+), 1 deletion(-)
    1.17 +
    1.18 +Index: newlib-1.20.0/newlib/libc/machine/m68k/memcpy.S
    1.19 +===================================================================
    1.20 +--- newlib-1.20.0.orig/newlib/libc/machine/m68k/memcpy.S
    1.21 ++++ newlib-1.20.0/newlib/libc/machine/m68k/memcpy.S
    1.22 +@@ -15,7 +15,7 @@
    1.23 + 
    1.24 + #include "m68kasm.h"
    1.25 + 
    1.26 +-#if defined (__mcoldfire__) || defined (__mc68010__) || defined (__mc68020__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__)
    1.27 ++#if defined (__mcoldfire__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__)
    1.28 + # define MISALIGNED_OK 1
    1.29 + #else
    1.30 + # define MISALIGNED_OK 0