[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 04/19] target-i386: use float unions from cpu-all.h
From: |
Aurelien Jarno |
Subject: |
[Qemu-devel] [PATCH 04/19] target-i386: use float unions from cpu-all.h |
Date: |
Tue, 12 Apr 2011 23:59:16 +0200 |
Use float unions from cpu-all.h instead of redefining new (wrong for arm)
ones in target-i386. This also allows building cpu-exec.o with softfloat.
Signed-off-by: Aurelien Jarno <address@hidden>
---
target-i386/exec.h | 27 ++-------------------------
1 files changed, 2 insertions(+), 25 deletions(-)
diff --git a/target-i386/exec.h b/target-i386/exec.h
index 6f9f709..63a23cd 100644
--- a/target-i386/exec.h
+++ b/target-i386/exec.h
@@ -144,13 +144,7 @@ static inline void svm_check_intercept(uint32_t type)
#ifdef USE_X86LDOUBLE
/* only for x86 */
-typedef union {
- long double d;
- struct {
- unsigned long long lower;
- unsigned short upper;
- } l;
-} CPU86_LDoubleU;
+typedef CPU_LDoubleU CPU86_LDoubleU;
/* the following deal with x86 long double-precision numbers */
#define MAXEXPD 0x7fff
@@ -162,24 +156,7 @@ typedef union {
#else
-/* NOTE: arm is horrible as double 32 bit words are stored in big endian ! */
-typedef union {
- double d;
-#if !defined(HOST_WORDS_BIGENDIAN) && !defined(__arm__)
- struct {
- uint32_t lower;
- int32_t upper;
- } l;
-#else
- struct {
- int32_t upper;
- uint32_t lower;
- } l;
-#endif
-#ifndef __arm__
- int64_t ll;
-#endif
-} CPU86_LDoubleU;
+typedef CPU_DoubleU CPU86_LDoubleU;
/* the following deal with IEEE double-precision numbers */
#define MAXEXPD 0x7ff
--
1.7.2.3
- [Qemu-devel] [PATCH 09/19] target-mips: use new float*_unordered*() functions, (continued)
- [Qemu-devel] [PATCH 09/19] target-mips: use new float*_unordered*() functions, Aurelien Jarno, 2011/04/12
- [Qemu-devel] [PATCH 16/19] target-alpha: fix wrong usage of float64_eq_quiet(), Aurelien Jarno, 2011/04/12
- [Qemu-devel] [PATCH 10/19] target-i386: fix CMPUNORDPS/D and CMPORDPS/D instructions, Aurelien Jarno, 2011/04/12
- [Qemu-devel] [PATCH 14/19] softfloat: improve description of comparison functions, Aurelien Jarno, 2011/04/12
- [Qemu-devel] [PATCH 17/19] target-ppc: fix SPE comparison functions, Aurelien Jarno, 2011/04/12
- [Qemu-devel] [PATCH 01/19] softfloat: use GCC builtins to count the leading zeros, Aurelien Jarno, 2011/04/12
- [Qemu-devel] [PATCH 12/19] softfloat: rename float*_eq_signaling() into float*_eq(), Aurelien Jarno, 2011/04/12
- [Qemu-devel] [PATCH 04/19] target-i386: use float unions from cpu-all.h,
Aurelien Jarno <=
- [Qemu-devel] [PATCH 02/19] cpu-all.h: define CPU_LDoubleU, Aurelien Jarno, 2011/04/12
- [Qemu-devel] [PATCH 03/19] target-i386: use CPU_LDoubleU instead of a private union, Aurelien Jarno, 2011/04/12
- Re: [Qemu-devel] [PATCH 00/19] softfloat and FPU fixes/improvements, Peter Maydell, 2011/04/13