libc/newlib: the m68k processor does not like unaligned 1.6
authorRemy Bohmer <linux@bohmer.net>
Fri Apr 09 21:04:38 2010 +0200 (2010-04-09)
branch1.6
changeset 192337613068818d
parent 1922 78dded99f609
child 1931 875abab986ac
libc/newlib: the m68k processor does not like unaligned

Disable unaligned access at least for mcpu32, m68010 and m68020.
These processors certainly do not like unaligned accesses.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
(transplanted from faade25219ed565993b7b26357991d3130697515)
patches/newlib/1.18.0/100-fix-unaligned-access-memcpy-m68k.patch
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/newlib/1.18.0/100-fix-unaligned-access-memcpy-m68k.patch	Fri Apr 09 21:04:38 2010 +0200
     1.3 @@ -0,0 +1,23 @@
     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 +---
    1.11 + newlib/libc/machine/m68k/memcpy.S |    2 +-
    1.12 + 1 file changed, 1 insertion(+), 1 deletion(-)
    1.13 +
    1.14 +Index: newlib-1.18.0/newlib/libc/machine/m68k/memcpy.S
    1.15 +===================================================================
    1.16 +--- newlib-1.18.0.orig/newlib/libc/machine/m68k/memcpy.S
    1.17 ++++ newlib-1.18.0/newlib/libc/machine/m68k/memcpy.S
    1.18 +@@ -15,7 +15,7 @@
    1.19 + 
    1.20 + #include "m68kasm.h"
    1.21 + 
    1.22 +-#if defined (__mcoldfire__) || defined (__mcpu32__) || defined (__mc68010__) || defined (__mc68020__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__)
    1.23 ++#if defined (__mcoldfire__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__)
    1.24 + # define MISALIGNED_OK 1
    1.25 + #else
    1.26 + # define MISALIGNED_OK 0