From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [patch] softmmu vs. softfloat
Date: Mon, 31 Oct 2005 04:53:20 +0100 [thread overview]
Message-ID: <200510310353.21463.paul@codesourcery.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 138 bytes --]
The attached patch fixes softmmu_header.h to use "float32" and "float64" from
softfloat.h instead of native "float" and "double".
Paul
[-- Attachment #2: patch.qemu_softfloat_mmu --]
[-- Type: text/x-diff, Size: 1524 bytes --]
Index: softmmu_header.h
===================================================================
RCS file: /cvsroot/qemu/qemu/softmmu_header.h,v
retrieving revision 1.9
diff -u -p -r1.9 softmmu_header.h
--- softmmu_header.h 2 Jul 2005 14:56:31 -0000 1.9
+++ softmmu_header.h 31 Oct 2005 03:44:50 -0000
@@ -304,20 +312,20 @@ static inline void glue(glue(st, SUFFIX)
#endif
#if DATA_SIZE == 8
-static inline double glue(ldfq, MEMSUFFIX)(target_ulong ptr)
+static inline float64 glue(ldfq, MEMSUFFIX)(target_ulong ptr)
{
union {
- double d;
+ float64 d;
uint64_t i;
} u;
u.i = glue(ldq, MEMSUFFIX)(ptr);
return u.d;
}
-static inline void glue(stfq, MEMSUFFIX)(target_ulong ptr, double v)
+static inline void glue(stfq, MEMSUFFIX)(target_ulong ptr, float64 v)
{
union {
- double d;
+ float64 d;
uint64_t i;
} u;
u.d = v;
@@ -326,20 +334,20 @@ static inline void glue(stfq, MEMSUFFIX)
#endif /* DATA_SIZE == 8 */
#if DATA_SIZE == 4
-static inline float glue(ldfl, MEMSUFFIX)(target_ulong ptr)
+static inline float32 glue(ldfl, MEMSUFFIX)(target_ulong ptr)
{
union {
- float f;
+ float32 f;
uint32_t i;
} u;
u.i = glue(ldl, MEMSUFFIX)(ptr);
return u.f;
}
-static inline void glue(stfl, MEMSUFFIX)(target_ulong ptr, float v)
+static inline void glue(stfl, MEMSUFFIX)(target_ulong ptr, float32 v)
{
union {
- float f;
+ float32 f;
uint32_t i;
} u;
u.f = v;
reply other threads:[~2005-10-31 3:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200510310353.21463.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).