crosstool-ng/packages/newlib/4.2.0.20211231/0000-fix-unaligned-access-memcpy-m68k.patch
Norbert Lange 2d8dd4f5e8 newlib: add 4.2.0.20211231
Remove upstreamed patches.

Signed-off-by: Norbert Lange <nolange79@gmail.com>
2023-07-24 15:01:44 +12:00

26 lines
986 B
Diff

The m68k mcpu processor does not like unaligned access
Disable at least mcpu32, m68010 and m68020. These processors certainly
do not like unaligned accesses.
Signed-off-by: Remy Bohmer <linux@bohmer.net>
[yann.morin.1998@anciens.enib.fr: update for 1.19.0 from 1.18.0]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
[austinpmorton@gmail.com: update for 1.20.0 from 1.19.0]
Signed-off-by: Austin Morton <austinpmorton@gmail.com>
---
newlib/libc/machine/m68k/memcpy.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/newlib/libc/machine/m68k/memcpy.S
+++ b/newlib/libc/machine/m68k/memcpy.S
@@ -15,7 +15,7 @@
#include "m68kasm.h"
-#if defined (__mcoldfire__) || defined (__mc68010__) || defined (__mc68020__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__)
+#if defined (__mcoldfire__) || defined (__mc68030__) || defined (__mc68040__) || defined (__mc68060__)
# define MISALIGNED_OK 1
#else
# define MISALIGNED_OK 0