diff options
Diffstat (limited to 'sim/mips/acinclude-top.m4')
-rw-r--r-- | sim/mips/acinclude-top.m4 | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sim/mips/acinclude-top.m4 b/sim/mips/acinclude-top.m4 new file mode 100644 index 0000000..4eb6c19 --- /dev/null +++ b/sim/mips/acinclude-top.m4 @@ -0,0 +1,34 @@ +dnl TODO: Rename this to acinclude.m4 once mips/configure is removed. +dnl +dnl Copyright (C) 2005-2022 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 NB: This file is included in sim/configure, so keep settings namespaced. + +dnl DEPRECATED +dnl +dnl Instead of defining a `subtarget' macro, code should be checking the value +dnl of {STATE,CPU}_ARCHITECTURE to identify the architecture dnl in question. +AC_MSG_CHECKING([mips subtarget]) +SIM_MIPS_SUBTARGET= +AS_CASE([${target}], + [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"]) +AC_MSG_RESULT([${SIM_MIPS_SUBTARGET:-none}]) +AC_SUBST(SIM_MIPS_SUBTARGET) |