From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2So8-0008L5-8Q for qemu-devel@nongnu.org; Sun, 12 Jan 2014 16:43:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2So7-0000Ku-BJ for qemu-devel@nongnu.org; Sun, 12 Jan 2014 16:43:00 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:44731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2So7-0000Kc-4T for qemu-devel@nongnu.org; Sun, 12 Jan 2014 16:42:59 -0500 From: Peter Maydell Date: Sun, 12 Jan 2014 21:42:50 +0000 Message-Id: <1389562970-30944-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1389562970-30944-1-git-send-email-peter.maydell@linaro.org> References: <1389562970-30944-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 1/1] arm: fix compile on bigendian host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Blue Swirl , qemu-devel@nongnu.org, Aurelien Jarno From: Alexey Kardashevskiy Signed-off-by: Alexey Kardashevskiy Signed-off-by: Peter Maydell --- 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.5