All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Zidlicky <rz@linux-m68k.org>
To: Fabrice Bellard <fabrice@bellard.org>, Qemu ML <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [patch] m68k updates #3
Date: Wed, 17 Mar 2004 19:12:17 +0100	[thread overview]
Message-ID: <20040317181217.GC2562@linux-m68k.org> (raw)

Hi,

this is another patch where I could use some advice.
m68k has hw support for "long double" so I thought
I could easilly improve performance a little bit and
get better precision by using them.

Appended patch shows how I was trying to do this, but
there must be something else I have missed because
regression tests dont work..

Anyway, the change might be usefull if someone else
attempts to do the same for some other arch.

Richard

diff -urN qemu-cvs/target-i386/cpu.h qemu-cvs-new/target-i386/cpu.h
--- qemu-cvs/target-i386/cpu.h	Thu Feb 26 00:14:19 2004
+++ qemu-cvs-new/target-i386/cpu.h	Wed Mar 17 18:39:40 2004
@@ -252,7 +252,8 @@
     CC_OP_NB,
 };
 
-#ifdef __i386__
+/* should work for m68k as well but needs more work somewhere */
+#if defined(__i386__) //|| defined (__mc68000)
 #define USE_X86LDOUBLE
 #endif
 
diff -urN qemu-cvs/target-i386/exec.h qemu-cvs-new/target-i386/exec.h
--- qemu-cvs/target-i386/exec.h	Thu Feb 26 00:26:33 2004
+++ qemu-cvs-new/target-i386/exec.h	Wed Mar 17 18:39:39 2004
@@ -440,7 +440,7 @@
 
 /* XXX: same endianness assumed */
 
-#ifdef CONFIG_USER_ONLY
+#if defined(CONFIG_USER_ONLY) && defined (__i386__)
 
 static inline CPU86_LDouble helper_fldt(uint8_t *ptr)
 {

                 reply	other threads:[~2004-03-17 20:40 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=20040317181217.GC2562@linux-m68k.org \
    --to=rz@linux-m68k.org \
    --cc=fabrice@bellard.org \
    --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.