]> git.proxmox.com Git - qemu.git/commitdiff
cpu-all.h: Remove unnecessary target-specific ifdef for CPU_QuadU
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Apr 2011 11:09:22 +0000 (12:09 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 4 Apr 2011 19:14:28 +0000 (21:14 +0200)
CPU_QuadU isn't used on all targets, but there's no harm in defining the
typedef anyway. It only needs to be guarded by CONFIG_SOFTFLOAT, because
softfloat-native doesn't have a float128 type. This avoids the need for
every new target which uses CPU_QuadU to add itself to an #ifdef in
what ought to be target-agnostic code.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
cpu-all.h

index 4cc445ffc329aa10f2d1aa2e31969d67e24957be..dc0f2f02abedd604d00a1002bf622a4099acf3fd 100644 (file)
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -138,11 +138,10 @@ typedef union {
     uint64_t ll;
 } CPU_DoubleU;
 
-#if defined(TARGET_SPARC) || defined(TARGET_S390X)
+#if defined(CONFIG_SOFTFLOAT)
 typedef union {
     float128 q;
-#if defined(HOST_WORDS_BIGENDIAN) \
-    || (defined(__arm__) && !defined(__VFP_FP__) && !defined(CONFIG_SOFTFLOAT))
+#if defined(HOST_WORDS_BIGENDIAN)
     struct {
         uint32_t upmost;
         uint32_t upper;