diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-28 22:07:44 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-30 02:57:45 -0400 |
commit | d414eb3e7fc1e82d68e69ba6a9a867b9d9a9dba2 (patch) | |
tree | c82ef917cb7fabce6d96e5357474f398b7de73be /sim/bfin/configure | |
parent | 1c636da093f335cd57e7fca0fc25ae9f9e849264 (diff) | |
download | gdb-d414eb3e7fc1e82d68e69ba6a9a867b9d9a9dba2.zip gdb-d414eb3e7fc1e82d68e69ba6a9a867b9d9a9dba2.tar.gz gdb-d414eb3e7fc1e82d68e69ba6a9a867b9d9a9dba2.tar.bz2 |
sim: move default model to the runtime sim state
This kills off another compile-time option by moving the setting to
the individual arch runtimes. This will allow dynamic selection by
the arch when doing a single build with multiple arches.
The sim_model_init rework is a little funky. In the past it was
disabled entirely if no default model was set. We maintain the
spirit of the logic by gating the fallback logic on whether the
port has defined any models.
Diffstat (limited to 'sim/bfin/configure')
-rwxr-xr-x | sim/bfin/configure | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/sim/bfin/configure b/sim/bfin/configure index bed0a3d..9b8c7fc 100755 --- a/sim/bfin/configure +++ b/sim/bfin/configure @@ -628,12 +628,10 @@ PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR -SHELL -sim_default_model' +SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking -enable_sim_default_model ' ac_precious_vars='build_alias host_alias @@ -1241,13 +1239,6 @@ if test -n "$ac_init_help"; then cat <<\_ACEOF -Optional Features: - --disable-option-checking ignore unrecognized --enable/--with options - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-sim-default-model=model - Specify default model to simulate - Report bugs to the package provider. _ACEOF ac_status=$? @@ -1678,23 +1669,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu - -default_sim_default_model="bf537" -# Check whether --enable-sim-default-model was given. -if test "${enable_sim_default_model+set}" = set; then : - enableval=$enable_sim_default_model; case "${enableval}" in - yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;; - *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";; -esac -if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then - echo "Setting default model = $sim_default_model" 6>&1 -fi -else - sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'" -fi - - - cgen_breaks="" if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then cgen_breaks="break cgen_rtx_error"; @@ -1716,7 +1690,6 @@ ac_config_commands="$ac_config_commands stamp-h" - SIM_COMMON_BUILD_TRUE='#' SIM_COMMON_BUILD_FALSE= |