aboutsummaryrefslogtreecommitdiff
path: root/sim/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-11 16:15:46 +0700
committerMike Frysinger <vapier@gentoo.org>2022-12-21 22:27:12 -0500
commitd455df988abbc7b8c29a77f2dfe8439a9ffa8881 (patch)
treecef5e3aaa3911670823fa44604d75be60d41e46e /sim/configure
parent19b11256a55c86a6871e1a10308ad7b68119a9c4 (diff)
downloadgdb-d455df988abbc7b8c29a77f2dfe8439a9ffa8881.zip
gdb-d455df988abbc7b8c29a77f2dfe8439a9ffa8881.tar.gz
gdb-d455df988abbc7b8c29a77f2dfe8439a9ffa8881.tar.bz2
sim: mips: move fpu bitsize defines to top-level configure
This drops support for the --enable-sim-float configure option, but it's not clear anyone ever actually used that. Eventually we'll want this to be a runtime option anyways.
Diffstat (limited to 'sim/configure')
-rwxr-xr-xsim/configure28
1 files changed, 26 insertions, 2 deletions
diff --git a/sim/configure b/sim/configure
index c818c10..ed08f10 100755
--- a/sim/configure
+++ b/sim/configure
@@ -641,6 +641,7 @@ LTLIBOBJS
include_makefile
SIM_RX_CYCLE_ACCURATE_FLAGS
SIM_RISCV_BITSIZE
+SIM_MIPS_FPU_BITSIZE
SIM_MIPS_BITSIZE
SIM_MIPS_SUBTARGET
SIM_FRV_TRAPDUMP_FLAGS
@@ -12433,7 +12434,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12436 "configure"
+#line 12437 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12539,7 +12540,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12542 "configure"
+#line 12543 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -16327,6 +16328,29 @@ esac
$as_echo "$SIM_MIPS_BITSIZE" >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5
+$as_echo_n "checking mips fpu bitsize... " >&6; }
+SIM_MIPS_FPU_BITSIZE=64
+case ${target} in #(
+ mips*tx39*) :
+ SIM_MIPS_FPU_BITSIZE=32 ;; #(
+ mips*-sde-elf*) :
+ SIM_MIPS_FPU_BITSIZE=64 ;; #(
+ mips*-mti-elf*) :
+ SIM_MIPS_FPU_BITSIZE=64 ;; #(
+ mipsisa32*-*-*) :
+ SIM_MIPS_FPU_BITSIZE=64 ;; #(
+ mipsisa64*-*-*) :
+ SIM_MIPS_FPU_BITSIZE=64 ;; #(
+ mips*-*-*) :
+ SIM_MIPS_FPU_BITSIZE=32 ;; #(
+ *) :
+ ;;
+esac
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5
+$as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; }
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
$as_echo_n "checking riscv bitsize... " >&6; }
SIM_RISCV_BITSIZE=64