qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [patch] CPU_DoubleU and soft-float


From: Fabrice Bellard
Subject: Re: [Qemu-devel] [patch] CPU_DoubleU and soft-float
Date: Thu, 07 Apr 2005 21:47:51 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913

OK for the patch.

It would be better to force the use of soft float on ARM if the VFP is not present. Supporting weird ordering for doubles is a source of problems and soft float may be faster than the kernel based ARM fpu emulator anyway.

Fabrice.

Paul Brook wrote:
The definition of CPU_DoubleU is incorrect on arm hosts when using
soft-float. In this case "float64" will have host integer word ordering, not
host hardware float ordering.

Paul

Index: cpu-all.h
===================================================================
RCS file: /cvsroot/qemu/qemu/cpu-all.h,v
retrieving revision 1.42
diff -u -p -r1.42 cpu-all.h
--- cpu-all.h 13 Mar 2005 18:50:23 -0000 1.42
+++ cpu-all.h 26 Mar 2005 20:48:25 -0000
@@ -120,7 +120,8 @@ static inline void tswap64s(uint64_t *s)
    endian ! */
 typedef union {
     float64 d;
-#if defined(WORDS_BIGENDIAN) || (defined(__arm__) && !defined(__VFP_FP__))
+#if defined(WORDS_BIGENDIAN) \
+    || (defined(__arm__) && !defined(__VFP_FP__) && !defined(CONFIG_SOFTFLOAT))
     struct {
         uint32_t upper;
         uint32_t lower;


_______________________________________________
Qemu-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/qemu-devel







reply via email to

[Prev in Thread] Current Thread [Next in Thread]