aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2014-01-12 21:37:37 +0000
committerPeter Maydell <peter.maydell@linaro.org>2014-01-12 21:37:37 +0000
commit5cd8a11834d1fbb12439604ff6793b9f0bae4a15 (patch)
treef831a72235854cf464b1af4f54880690142c2de1
parenteedc1a5db5e4d941e39e54344322c0b1e89dfdcd (diff)
downloadqemu-arm-pull-target-arm-20140112.tar.gz
arm: fix compile on bigendian hostpull-target-arm-20140112
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--target-arm/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-arm/cpu.h b/target-arm/cpu.h
index f1307eb488..198b6b8d4e 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