]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commitdiff
arm: fix compile on bigendian host
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Sun, 12 Jan 2014 21:37:37 +0000 (21:37 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Sun, 12 Jan 2014 21:37:37 +0000 (21:37 +0000)
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/cpu.h

index f1307eb488153e95eec8889e8a2d385ba8d8725c..198b6b8d4e1204213f7788a467a97a5415c45f8b 100644 (file)
@@ -73,7 +73,7 @@
  * significant half of a uint64_t struct member.
  */
 #ifdef HOST_WORDS_BIGENDIAN
-#define offsetoflow32(S, M) offsetof(S, M + sizeof(uint32_t))
+#define offsetoflow32(S, M) (offsetof(S, M) + sizeof(uint32_t))
 #else
 #define offsetoflow32(S, M) offsetof(S, M)
 #endif