qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] arm: fix compile on bigendian host


From: Alexey Kardashevskiy
Subject: [Qemu-devel] [PATCH] arm: fix compile on bigendian host
Date: Fri, 10 Jan 2014 21:09:17 +1100

Signed-off-by: Alexey Kardashevskiy <address@hidden>
---

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

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

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
-- 
1.8.4.rc4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]