OSDN Git Service

Tweak the 64-bit load/store code
authorAndy McFadden <fadden@android.com>
Thu, 10 Feb 2011 23:32:16 +0000 (15:32 -0800)
committerAndy McFadden <fadden@android.com>
Thu, 10 Feb 2011 23:32:16 +0000 (15:32 -0800)
commit529d6b8112a06daca3bf4a89dec9fbad95efe46b
treecd876c874280a341ebe2b11679dfcb9eac4efd3f
parent8dcf274871fbce24f2891ddb05bdd8e5af2a53cd
Tweak the 64-bit load/store code

The old version would either move data through a union, call memcpy(),
or just cast the pointer to a wider type and dereference it.  The
latter turns out to be an aliasing violation, and it recently started
causing test failures on the "host" build.

We now use memcpy() for x86 and unions for ARM.

Bug 3431820

Change-Id: I302a7f49f7ae88ac96b8f7fef3d9260ac64d631b
vm/mterp/c/header.c
vm/mterp/out/InterpC-allstubs.c
vm/mterp/out/InterpC-armv5te-vfp.c
vm/mterp/out/InterpC-armv5te.c
vm/mterp/out/InterpC-armv7-a-neon.c
vm/mterp/out/InterpC-armv7-a.c
vm/mterp/out/InterpC-portdbg.c
vm/mterp/out/InterpC-portstd.c
vm/mterp/out/InterpC-x86-atom.c
vm/mterp/out/InterpC-x86.c