diff mbox

arm: fix compile on bigendian host

Message ID 1389348557-8018-1-git-send-email-aik@ozlabs.ru
State New
Headers show

Commit Message

Alexey Kardashevskiy Jan. 10, 2014, 10:09 a.m. UTC
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---

Peter, is not it what you really wanted? :)

---
 target-arm/cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Peter Maydell Jan. 10, 2014, 10:27 a.m. UTC | #1
On 10 January 2014 10:09, Alexey Kardashevskiy <aik@ozlabs.ru> wrote:
> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
> ---
>
> Peter, is not it what you really wanted? :)

Rats.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

I've clearly been in a bit too much of a hurry over
this; apologies for this breakage.

Applied to target-arm.next but if anybody has a faster
path for getting build breakage fixes applied please do.

thanks
-- PMM
diff mbox

Patch

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