summaryrefslogtreecommitdiffstats
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)
downloadhqemu-5cd8a11834d1fbb12439604ff6793b9f0bae4a15.zip
hqemu-5cd8a11834d1fbb12439604ff6793b9f0bae4a15.tar.gz
arm: fix compile on bigendian host
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 f1307eb..198b6b8 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
OpenPOWER on IntegriCloud