[4380] CRIS: Disable softfloat and dyngen ops.
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
===================================================================
configure +2 -2
@@ -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
Quoted 9 lines · Edgar E. Iglesias
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.
cpu-all.h +1 -0
@@ -38,6 +38,7 @@*/ #include "bswap.h" +#include "softfloat.h" #if defined(WORDS_BIGENDIAN ) != defined(TARGET_WORDS_BIGENDIAN )#define BSWAP_NEEDED
target-cris/cpu.h +0 -2
@@ -25,8 +25,6 @@#include "cpu-defs.h" -#include "softfloat.h" -#define TARGET_HAS_ICE 1#define ELF_MACHINE EM_CRIS
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 35 lines · Aurelien Jarno
Quoted 9 lines · Edgar E. Iglesias
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" intarget-cris/cpu.hcan probably be removed.I tried, but that fail. I guess the patch below should be the correct way to do that.
cpu-all.hneeds this include as it uses float32, float64 and float128 are used in various parts of this file.cpu-all.h +1
-0@@ -38,6 +38,7 @@*/ #include "bswap.h" +#include "softfloat.h" #if defined(WORDS_BIGENDIAN ) != defined(TARGET_WORDS_BIGENDIAN )#define BSWAP_NEEDED target-cris/cpu.h +0
-0
target-cris/cpu.h line 30
Quoted 8 lines
target-cris/cpu.h +0
-2@@ -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.
Signature · 2 lines
Edgar E. Iglesias Axis Communications AB
Makefile.target +2 -0
@@ -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)
configure +3 -0
@@ -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
cpu-all.h +1 -0
@@ -38,6 +38,7 @@*/ #include "bswap.h" +#include "softfloat.h" #if defined(WORDS_BIGENDIAN ) != defined(TARGET_WORDS_BIGENDIAN )#define BSWAP_NEEDED
target-cris/cpu.h +0 -2
@@ -25,8 +25,6 @@#include "cpu-defs.h" -#include "softfloat.h" -#define TARGET_HAS_ICE 1#define ELF_MACHINE EM_CRIS