* [Qemu-devel] [4380] CRIS: Disable softfloat and dyngen ops.
@ 2008-05-07 15:33 Edgar E. Iglesias
2008-05-08 21:28 ` Aurelien Jarno
0 siblings, 1 reply; 3+ messages in thread
From: Edgar E. Iglesias @ 2008-05-07 15:33 UTC (permalink / raw)
To: qemu-devel
Revision: 4380
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4380
Author: edgar_igl
Date: 2008-05-07 15:33:57 +0000 (Wed, 07 May 2008)
Log Message:
-----------
CRIS: Disable softfloat and dyngen ops.
Modified Paths:
--------------
trunk/configure
Modified: trunk/configure
===================================================================
--- trunk/configure 2008-05-07 15:29:58 UTC (rev 4379)
+++ trunk/configure 2008-05-07 15:33:57 UTC (rev 4380)
@@ -1232,10 +1232,10 @@
;;
cris)
echo "TARGET_ARCH=cris" >> $config_mak
+ echo "CONFIG_NO_DYNGEN_OP=yes" >> $config_mak
echo "#define TARGET_ARCH \"cris\"" >> $config_h
echo "#define TARGET_CRIS 1" >> $config_h
- echo "CONFIG_SOFTFLOAT=yes" >> $config_mak
- echo "#define CONFIG_SOFTFLOAT 1" >> $config_h
+ echo "#define CONFIG_NO_DYNGEN_OP 1" >> $config_h
;;
m68k)
echo "TARGET_ARCH=m68k" >> $config_mak
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [4380] CRIS: Disable softfloat and dyngen ops.
2008-05-07 15:33 [Qemu-devel] [4380] CRIS: Disable softfloat and dyngen ops Edgar E. Iglesias
@ 2008-05-08 21:28 ` Aurelien Jarno
2008-05-08 22:26 ` Edgar E. Iglesias
0 siblings, 1 reply; 3+ messages in thread
From: Aurelien Jarno @ 2008-05-08 21:28 UTC (permalink / raw)
To: qemu-devel
On Wed, May 07, 2008 at 03:33:57PM +0000, Edgar E. Iglesias wrote:
> Revision: 4380
> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4380
> Author: edgar_igl
> Date: 2008-05-07 15:33:57 +0000 (Wed, 07 May 2008)
>
> Log Message:
> -----------
> CRIS: Disable softfloat and dyngen ops.
>
I guess that's because CRIS has not FP instructions. In that case
the #include "softfloat.h" in target-cris/cpu.h can probably be removed.
I tried, but that fail. I guess the patch below should be the correct
way to do that. cpu-all.h needs this include as it uses float32, float64
and float128 are used in various parts of this file.
diff --git a/cpu-all.h b/cpu-all.h
index 2740da9..14e2a88 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -38,6 +38,7 @@
*/
#include "bswap.h"
+#include "softfloat.h"
#if defined(WORDS_BIGENDIAN) != defined(TARGET_WORDS_BIGENDIAN)
#define BSWAP_NEEDED
diff --git a/target-cris/cpu.h b/target-cris/cpu.h
index b62c537..49de830 100644
--- a/target-cris/cpu.h
+++ b/target-cris/cpu.h
@@ -25,8 +25,6 @@
#include "cpu-defs.h"
-#include "softfloat.h"
-
#define TARGET_HAS_ICE 1
#define ELF_MACHINE EM_CRIS
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [4380] CRIS: Disable softfloat and dyngen ops.
2008-05-08 21:28 ` Aurelien Jarno
@ 2008-05-08 22:26 ` Edgar E. Iglesias
0 siblings, 0 replies; 3+ messages in thread
From: Edgar E. Iglesias @ 2008-05-08 22:26 UTC (permalink / raw)
To: Aurelien Jarno; +Cc: qemu-devel
On Thu, May 08, 2008 at 11:28:44PM +0200, Aurelien Jarno wrote:
> On Wed, May 07, 2008 at 03:33:57PM +0000, Edgar E. Iglesias wrote:
> > Revision: 4380
> > http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4380
> > Author: edgar_igl
> > Date: 2008-05-07 15:33:57 +0000 (Wed, 07 May 2008)
> >
> > Log Message:
> > -----------
> > CRIS: Disable softfloat and dyngen ops.
> >
>
> I guess that's because CRIS has not FP instructions. In that case
> the #include "softfloat.h" in target-cris/cpu.h can probably be removed.
>
> I tried, but that fail. I guess the patch below should be the correct
> way to do that. cpu-all.h needs this include as it uses float32, float64
> and float128 are used in various parts of this file.
>
> diff --git a/cpu-all.h b/cpu-all.h
> index 2740da9..14e2a88 100644
> --- a/cpu-all.h
> +++ b/cpu-all.h
> @@ -38,6 +38,7 @@
> */
>
> #include "bswap.h"
> +#include "softfloat.h"
>
> #if defined(WORDS_BIGENDIAN) != defined(TARGET_WORDS_BIGENDIAN)
> #define BSWAP_NEEDED
> diff --git a/target-cris/cpu.h b/target-cris/cpu.h
> index b62c537..49de830 100644
> --- a/target-cris/cpu.h
> +++ b/target-cris/cpu.h
> @@ -25,8 +25,6 @@
>
> #include "cpu-defs.h"
>
> -#include "softfloat.h"
> -
> #define TARGET_HAS_ICE 1
>
> #define ELF_MACHINE EM_CRIS
Hi Aurelien,
I think your patch is good, lets apply it.
I also tried adding a new option to get rid of the float code altogether. Not sure if the new option is worth the trouble but it works fine for CRIS.
--
Edgar E. Iglesias
Axis Communications AB
diff --git a/Makefile.target b/Makefile.target
index 28774ce..b090d6f 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -194,11 +194,13 @@ CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
ifeq ($(ARCH),sparc64)
CPPFLAGS+=-I$(SRC_PATH)/tcg/sparc
endif
+ifndef CONFIG_NO_FLOAT
ifdef CONFIG_SOFTFLOAT
LIBOBJS+=fpu/softfloat.o
else
LIBOBJS+=fpu/softfloat-native.o
endif
+endif
CPPFLAGS+=-I$(SRC_PATH)/fpu
ifeq ($(TARGET_ARCH), i386)
diff --git a/configure b/configure
index 34ffa10..8df1c05 100755
--- a/configure
+++ b/configure
@@ -1233,9 +1233,12 @@ case "$target_cpu" in
cris)
echo "TARGET_ARCH=cris" >> $config_mak
echo "CONFIG_NO_DYNGEN_OP=yes" >> $config_mak
+ echo "CONFIG_NO_FLOAT=yes" >> $config_mak
echo "#define TARGET_ARCH \"cris\"" >> $config_h
echo "#define TARGET_CRIS 1" >> $config_h
echo "#define CONFIG_NO_DYNGEN_OP 1" >> $config_h
+ # Disable float code entirely.
+ echo "#define CONFIG_NO_FLOAT 1" >> $config_h
;;
m68k)
echo "TARGET_ARCH=m68k" >> $config_mak
diff --git a/cpu-all.h b/cpu-all.h
index 2740da9..14e2a88 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -38,6 +38,7 @@
*/
#include "bswap.h"
+#include "softfloat.h"
#if defined(WORDS_BIGENDIAN) != defined(TARGET_WORDS_BIGENDIAN)
#define BSWAP_NEEDED
diff --git a/target-cris/cpu.h b/target-cris/cpu.h
index b62c537..49de830 100644
--- a/target-cris/cpu.h
+++ b/target-cris/cpu.h
@@ -25,8 +25,6 @@
#include "cpu-defs.h"
-#include "softfloat.h"
-
#define TARGET_HAS_ICE 1
#define ELF_MACHINE EM_CRIS
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-08 22:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-07 15:33 [Qemu-devel] [4380] CRIS: Disable softfloat and dyngen ops Edgar E. Iglesias
2008-05-08 21:28 ` Aurelien Jarno
2008-05-08 22:26 ` Edgar E. Iglesias
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).