From: Alexey Kardashevskiy Date: Sun, 12 Jan 2014 21:37:37 +0000 (+0000) Subject: arm: fix compile on bigendian host X-Git-Tag: qemu-xen-4.5.0-rc1~266^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5cd8a11834d1fbb12439604ff6793b9f0bae4a15;p=qemu-upstream-4.5-testing.git arm: fix compile on bigendian host Signed-off-by: Alexey Kardashevskiy Signed-off-by: Peter Maydell --- diff --git a/target-arm/cpu.h b/target-arm/cpu.h index f1307eb48..198b6b8d4 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -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