From: Paolo Bonzini Date: Thu, 28 Jul 2011 10:10:28 +0000 (+0200) Subject: move WORDS_ALIGNED to qemu-common.h X-Git-Tag: v1.0-rc0~568^2~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=332ae28dad2d4f155e1ad82bf89a605c2b2710ba;p=thirdparty%2Fqemu.git move WORDS_ALIGNED to qemu-common.h This is not a CPU interface, and a configure test would not be too precise. So just add it to qemu-common.h. Signed-off-by: Paolo Bonzini Signed-off-by: Anthony Liguori --- diff --git a/cpu-common.h b/cpu-common.h index 44b04b38391..16c9f4f487a 100644 --- a/cpu-common.h +++ b/cpu-common.h @@ -3,10 +3,6 @@ /* CPU interfaces that are target indpendent. */ -#if defined(__arm__) || defined(__sparc__) || defined(__mips__) || defined(__hppa__) || defined(__ia64__) -#define WORDS_ALIGNED -#endif - #ifdef TARGET_PHYS_ADDR_BITS #include "targphys.h" #endif diff --git a/qemu-common.h b/qemu-common.h index 391fadda56f..1e3c66511ee 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -5,6 +5,10 @@ #include "compiler.h" #include "config-host.h" +#if defined(__arm__) || defined(__sparc__) || defined(__mips__) || defined(__hppa__) || defined(__ia64__) +#define WORDS_ALIGNED +#endif + #define TFR(expr) do { if ((expr) != -1) break; } while (errno == EINTR) typedef struct QEMUTimer QEMUTimer;