]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: clean up explicit environment build calls
authorMike Frysinger <vapier@gentoo.org>
Wed, 12 May 2021 04:46:19 +0000 (00:46 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 12 May 2021 04:47:49 +0000 (00:47 -0400)
This was enabled by default for all targets, but a few ports still
include an explicit call.  Clean that up, and update the docs.

sim/ChangeLog
sim/README-HACKING
sim/or1k/ChangeLog
sim/or1k/configure
sim/or1k/configure.ac
sim/riscv/ChangeLog
sim/riscv/configure
sim/riscv/configure.ac

index 96588c7a78057076e62e004fbc4cdf94ead9a253..236b156c6961acfe836b7f6e31662e217311affb 100644 (file)
@@ -1,3 +1,7 @@
+2021-05-12  Mike Frysinger  <vapier@gentoo.org>
+
+       * README-HACKING: Delete mention of SIM_AC_OPTION_ENVIRONMENT.
+
 2021-05-12  Luis Machado  <luis.machado@linaro.org>
 
        * d10v/interp.c (sim_create_inferior): Fix memset call.
index bd0054fd22e53a9c9440ec4d47c21d0064940c53..69d08ff1ecfcb77014cbc706777263cf61cc892c 100644 (file)
@@ -278,8 +278,8 @@ Environment Simulation
 
 The simplest simulator doesn't include environment support -- it merely
 simulates the Instruction Set Architecture (ISA).  Once you're ready to move
-on to the next level, call the common macro in your configure.ac:
-SIM_AC_OPTION_ENVIRONMENT
+on to the next level, it's time to start handling the --env option.  It's
+enabled by default for all ports already.
 
 This will support for the user, virtual, and operating environments.  See the
 sim-config.h header for a more detailed description of them.  The former are
index 55b923ddfdf5e6341f568fdb74eaf0a3e1291124..ece6160c43f733a5b229ac20cf75c66a3a9ff83b 100644 (file)
@@ -1,3 +1,8 @@
+2021-05-12  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure.ac: Delete SIM_AC_OPTION_ENVIRONMENT call.
+       * configure: Regenerate.
+
 2021-05-04  Tom Tromey  <tromey@adacore.com>
 
        * mloop.in: Include <stdlib.h>.
index 6ebe791ad3dc3ec221a99af502e02f8865055ed7..ef0a6c7b1627240425efbc902964076d99d9c8e1 100755 (executable)
@@ -12147,28 +12147,6 @@ $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
 fi
 
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
-$as_echo_n "checking default sim environment setting... " >&6; }
-sim_environment="ALL_ENVIRONMENT"
-# Check whether --enable-sim-environment was given.
-if test "${enable_sim_environment+set}" = set; then :
-  enableval=$enable_sim_environment; case "${enableval}" in
-  all | ALL)             sim_environment="ALL_ENVIRONMENT";;
-  user | USER)           sim_environment="USER_ENVIRONMENT";;
-  virtual | VIRTUAL)     sim_environment="VIRTUAL_ENVIRONMENT";;
-  operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
-  *)   as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
-esac
-fi
-
-cat >>confdefs.h <<_ACEOF
-#define WITH_ENVIRONMENT $sim_environment
-_ACEOF
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
-$as_echo "$sim_environment" >&6; }
-
-
 cgen_maint=no
 cgen=guile
 cgendir='$(srcdir)/../../cgen'
index ed0739f74a5697d9ec7a3992364439986a83f6e4..32fb0d49b95dcd71d311f4aafc3f4b0cbe638e35 100644 (file)
@@ -10,7 +10,6 @@ SIM_AC_OPTION_BITSIZE([32], [31], [32])
 SIM_AC_OPTION_SCACHE(16384)
 SIM_AC_OPTION_DEFAULT_MODEL([or1200])
 SIM_AC_OPTION_WARNINGS(no)
-SIM_AC_OPTION_ENVIRONMENT
 SIM_AC_OPTION_CGEN_MAINT
 
 SIM_AC_OUTPUT
index c121d486b0cb82402e6ddbea8803ce8067d1d71e..557b722da2530da68b96fbf5c328cc997aae3e88 100644 (file)
@@ -1,3 +1,8 @@
+2021-05-12  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure.ac: Delete SIM_AC_OPTION_ENVIRONMENT call.
+       * configure: Regenerate.
+
 2021-05-04  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index 6e9c9ab02f259ce9dc0d1a4b329c2a1696224589..c41f800ce9f03040e5c17b98862b5bb7cc76028c 100755 (executable)
 fi
 
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
-$as_echo_n "checking default sim environment setting... " >&6; }
-sim_environment="ALL_ENVIRONMENT"
-# Check whether --enable-sim-environment was given.
-if test "${enable_sim_environment+set}" = set; then :
-  enableval=$enable_sim_environment; case "${enableval}" in
-  all | ALL)             sim_environment="ALL_ENVIRONMENT";;
-  user | USER)           sim_environment="USER_ENVIRONMENT";;
-  virtual | VIRTUAL)     sim_environment="VIRTUAL_ENVIRONMENT";;
-  operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
-  *)   as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
-esac
-fi
-
-cat >>confdefs.h <<_ACEOF
-#define WITH_ENVIRONMENT $sim_environment
-_ACEOF
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
-$as_echo "$sim_environment" >&6; }
-
-
 # Check whether --enable-werror was given.
 if test "${enable_werror+set}" = set; then :
   enableval=$enable_werror; case "${enableval}" in
index 84b236adf4f77a2cae61193dc42f85dfe843400c..e5a07bbc46b08af9bf5cdf47c27cc15643230b28 100644 (file)
@@ -6,7 +6,6 @@ SIM_AC_COMMON
 
 SIM_AC_OPTION_ENDIAN(LITTLE)
 SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT)
-SIM_AC_OPTION_ENVIRONMENT
 SIM_AC_OPTION_WARNINGS
 
 # Select the default model for the target.