1
From 28ed1ff5909bf476092c12840ace2f678f0dcdc8 Mon Sep 17 00:00:00 2001
2
From: Alexey Kardashevskiy <aik@ozlabs.ru>
3
Date: Sun, 12 Jan 2014 21:37:37 +0000
4
Subject: [PATCH 111/158] arm: fix compile on bigendian host
6
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
7
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
12
target-arm/cpu.h | 2 +-
13
1 file changed, 1 insertion(+), 1 deletion(-)
15
diff --git a/target-arm/cpu.h b/target-arm/cpu.h
16
index 46c15f4..484728f 100644
17
--- a/target-arm/cpu.h
18
+++ b/target-arm/cpu.h
20
* significant half of a uint64_t struct member.
22
#ifdef HOST_WORDS_BIGENDIAN
23
-#define offsetoflow32(S, M) (offsetof(S, M + sizeof(uint32_t))
24
+#define offsetoflow32(S, M) (offsetof(S, M) + sizeof(uint32_t))
26
#define offsetoflow32(S, M) offsetof(S, M)