sim: clean up explicit environment build calls

This was enabled by default for all targets, but a few ports still
include an explicit call.  Clean that up, and update the docs.
This commit is contained in:
Mike Frysinger 2021-05-12 00:46:19 -04:00
parent e7e40cedbb
commit 425b0b1a98
8 changed files with 16 additions and 48 deletions

View 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.

View 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

View 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>.

22
sim/or1k/configure vendored
View File

@ -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'

View 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

View 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.

22
sim/riscv/configure vendored
View File

@ -11948,28 +11948,6 @@ fi
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

View 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.