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/m4 | |
parent | 1c636da093f335cd57e7fca0fc25ae9f9e849264 (diff) | |
download | binutils-d414eb3e7fc1e82d68e69ba6a9a867b9d9a9dba2.zip binutils-d414eb3e7fc1e82d68e69ba6a9a867b9d9a9dba2.tar.gz binutils-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/m4')
-rw-r--r-- | sim/m4/sim_ac_option_default_model.m4 | 31 | ||||
-rw-r--r-- | sim/m4/sim_ac_output.m4 | 1 |
2 files changed, 0 insertions, 32 deletions
diff --git a/sim/m4/sim_ac_option_default_model.m4 b/sim/m4/sim_ac_option_default_model.m4 deleted file mode 100644 index 1150937..0000000 --- a/sim/m4/sim_ac_option_default_model.m4 +++ /dev/null @@ -1,31 +0,0 @@ -dnl Copyright (C) 1997-2021 Free Software Foundation, Inc. -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 3 of the License, or -dnl (at your option) any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program. If not, see <http://www.gnu.org/licenses/>. -dnl -dnl The argument is the default model if none is specified. -AC_DEFUN([SIM_AC_OPTION_DEFAULT_MODEL], -[ -default_sim_default_model="ifelse([$1],,0,[$1])" -AC_ARG_ENABLE(sim-default-model, -[AS_HELP_STRING([--enable-sim-default-model=model], - [Specify default model to simulate])], -[case "${enableval}" in - yes|no) AC_MSG_ERROR("Missing argument to --enable-sim-default-model");; - *) 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],[sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"]) -]) -AC_SUBST(sim_default_model) diff --git a/sim/m4/sim_ac_output.m4 b/sim/m4/sim_ac_output.m4 index f9f7016..100e2f9 100644 --- a/sim/m4/sim_ac_output.m4 +++ b/sim/m4/sim_ac_output.m4 @@ -48,7 +48,6 @@ dnl when the rest of the code is in the respective macros. AC_SUBST(sim_bitsize) AC_SUBST(sim_float) AC_SUBST(sim_scache) -AC_SUBST(sim_default_model) AC_SUBST(sim_reserved_bits) dnl Used by common/Make-common.in to see which configure script created it. |