qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [patch] m68k updates #3
@ 2004-03-17 18:12 Richard Zidlicky
  0 siblings, 0 replies; only message in thread
From: Richard Zidlicky @ 2004-03-17 18:12 UTC (permalink / raw)
  To: Fabrice Bellard, Qemu ML

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)
 {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-17 20:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-17 18:12 [Qemu-devel] [patch] m68k updates #3 Richard Zidlicky

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).