diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2014-01-12 21:37:37 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-01-12 21:37:37 +0000 |
commit | 5cd8a11834d1fbb12439604ff6793b9f0bae4a15 (patch) | |
tree | f831a72235854cf464b1af4f54880690142c2de1 /target-arm/cpu.h | |
parent | eedc1a5db5e4d941e39e54344322c0b1e89dfdcd (diff) | |
download | qemu-5cd8a11834d1fbb12439604ff6793b9f0bae4a15.zip qemu-5cd8a11834d1fbb12439604ff6793b9f0bae4a15.tar.gz qemu-5cd8a11834d1fbb12439604ff6793b9f0bae4a15.tar.bz2 |
arm: fix compile on bigendian host
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-arm/cpu.h')
-rw-r--r-- | target-arm/cpu.h | 2 |
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 |