m68k updates #3
PATCH 1/1 m68k updates #3
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
target-i386/cpu.h +2 -1
@@ -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
target-i386/exec.h +1 -1
@@ -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) {