All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Arm host float endian fix
Date: Sun, 6 Feb 2005 01:03:29 +0000	[thread overview]
Message-ID: <200502060103.30562.paul@codesourcery.com> (raw)

The newer arm VFP floating point units store double values with natural 
word-ordering, unlike the old FPA unit which always used big-endian.

Patch below updates host conditionals to reflect this.

Paul

Index: cpu-all.h
===================================================================
RCS file: /cvsroot/qemu/qemu/cpu-all.h,v
retrieving revision 1.39
diff -u -p -r1.39 cpu-all.h
--- cpu-all.h 28 Jan 2005 22:37:22 -0000 1.39
+++ cpu-all.h 6 Feb 2005 00:57:27 -0000
@@ -114,10 +114,11 @@ static inline void tswap64s(uint64_t *s)
 #define tswapls(s) tswap64s((uint64_t *)(s))
 #endif
 
-/* NOTE: arm is horrible as double 32 bit words are stored in big endian ! */
+/* NOTE: arm FPA is horrible as double 32 bit words are stored in big endian!
+ */
 typedef union {
     double d;
-#if !defined(WORDS_BIGENDIAN) && !defined(__arm__)
+#if !defined(WORDS_BIGENDIAN) && !defined(__arm__) && !defined (__VFP_FP__)
     struct {
         uint32_t lower;
         uint32_t upper;

             reply	other threads:[~2005-02-06  1:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-06  1:03 Paul Brook [this message]
2005-02-06 12:31 ` [Qemu-devel] Arm host float endian fix Lennert Buytenhek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200502060103.30562.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.