aboutsummaryrefslogtreecommitdiff
path: root/sim/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-11 15:44:57 +0700
committerMike Frysinger <vapier@gentoo.org>2022-12-21 22:27:11 -0500
commit2d5700ad4e6e43d76548be5e8148c05f6948aea2 (patch)
tree6af9359f034777f954a6720171417f344c1cea3a /sim/configure
parent0fb6c560ffa591fbb7f8aa7de4f6719e20ced208 (diff)
downloadgdb-2d5700ad4e6e43d76548be5e8148c05f6948aea2.zip
gdb-2d5700ad4e6e43d76548be5e8148c05f6948aea2.tar.gz
gdb-2d5700ad4e6e43d76548be5e8148c05f6948aea2.tar.bz2
sim: mips: move subtarget defines to top-level configure
We want to kill off mips/configure entirely. Move this small part out now to get started.
Diffstat (limited to 'sim/configure')
-rwxr-xr-xsim/configure29
1 files changed, 27 insertions, 2 deletions
diff --git a/sim/configure b/sim/configure
index 57c4fcf..bf81c83 100755
--- a/sim/configure
+++ b/sim/configure
@@ -641,6 +641,7 @@ LTLIBOBJS
include_makefile
SIM_RX_CYCLE_ACCURATE_FLAGS
SIM_RISCV_BITSIZE
+SIM_MIPS_SUBTARGET
SIM_FRV_TRAPDUMP_FLAGS
sim_float
sim_bitsize
@@ -12431,7 +12432,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12434 "configure"
+#line 12435 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12537,7 +12538,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12540 "configure"
+#line 12541 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -16276,6 +16277,30 @@ $as_echo "no" >&6; }
fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5
+$as_echo_n "checking mips subtarget... " >&6; }
+SIM_MIPS_SUBTARGET=
+case ${target} in #(
+ mips64vr*-*-*) :
+ SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
+ mips*tx39*) :
+ SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #(
+ mips*-sde-elf*) :
+ SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
+ mips*-mti-elf*) :
+ SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
+ mipsisa32*-*-*) :
+ SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
+ mipsisa64*-*-*) :
+ SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
+ *) :
+ ;;
+esac
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5
+$as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; }
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
$as_echo_n "checking riscv bitsize... " >&6; }
SIM_RISCV_BITSIZE=64