]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/commitdiff
Fix armv7-user builds by disabling the ARMv7-optimized memcpy.
authorDavid 'Digit' Turner <digit@google.com>
Sat, 3 Oct 2009 02:13:27 +0000 (19:13 -0700)
committerDavid 'Digit' Turner <digit@google.com>
Sat, 3 Oct 2009 02:13:27 +0000 (19:13 -0700)
This is required to work-around some corny bugs in ARMv7 emulation.

The emulation itself is required to run the dex pre-optimization pass
for -user builds.

libc/arch-arm/bionic/memcpy.S

index f5cc67b06c24a5a2fa2a4988a6b214da9bcfa64e..254e8700e1a7a836da2204ad7ec4282f7a9297bb 100644 (file)
 
 #include <machine/cpu-features.h>
 
-#if __ARM_ARCH__ == 7 || defined(__ARM_NEON__)
+/* VERY IMPORTANT NOTE:
+ *        The following ARMv7-optimized version of memcpy is DISABLED !
+ *
+ *        Because the corresponding machine code is not properly emulated
+ *        by the Android emulator at this time, and because running the
+ *        dex pre-optimization pass in the emulator is required when
+ *        building -user images (corresponding to the system images of
+ *        production devices).
+ *
+ *        The code will be re-enabled as soon as we fix the ARMv7 emulation
+ *        issues. An even better fix would be to *not* have to run the
+ *        dex pre-opt pass in the emulator, but on the build host instead.
+ */
+#if 0
+/* #if __ARM_ARCH__ == 7 || defined(__ARM_NEON__) */
 
         .text
         .fpu    neon