Home | History | Annotate | Line # | Download | only in frv
      1  1.1.1.2  christos dnl Copyright (C) 1997-2024 Free Software Foundation, Inc.
      2      1.1  christos dnl
      3      1.1  christos dnl This program is free software; you can redistribute it and/or modify
      4      1.1  christos dnl it under the terms of the GNU General Public License as published by
      5      1.1  christos dnl the Free Software Foundation; either version 3 of the License, or
      6      1.1  christos dnl (at your option) any later version.
      7      1.1  christos dnl
      8      1.1  christos dnl This program is distributed in the hope that it will be useful,
      9      1.1  christos dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
     10      1.1  christos dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     11      1.1  christos dnl GNU General Public License for more details.
     12      1.1  christos dnl
     13      1.1  christos dnl You should have received a copy of the GNU General Public License
     14      1.1  christos dnl along with this program.  If not, see <http://www.gnu.org/licenses/>.
     15      1.1  christos dnl
     16      1.1  christos dnl NB: This file is included in sim/configure, so keep settings namespaced.
     17      1.1  christos dnl
     18      1.1  christos dnl Enable making unknown traps dump out registers
     19      1.1  christos AC_MSG_CHECKING([whether sim frv should dump cpu state on unknown traps])
     20      1.1  christos AC_ARG_ENABLE(sim-frv-trapdump,
     21      1.1  christos [AS_HELP_STRING([--enable-sim-frv-trapdump],
     22      1.1  christos 		[Make unknown traps dump the registers])],
     23      1.1  christos [case "${enableval}" in
     24      1.1  christos yes|no) ;;
     25      1.1  christos *) AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-trapdump");;
     26      1.1  christos esac])
     27      1.1  christos if test "x${enable_sim_frv_trapdump}" = xyes; then
     28      1.1  christos   SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
     29      1.1  christos   AC_MSG_RESULT([yes])
     30      1.1  christos else
     31      1.1  christos   SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
     32      1.1  christos   AC_MSG_RESULT([no])
     33      1.1  christos fi
     34      1.1  christos AC_SUBST(SIM_FRV_TRAPDUMP_FLAGS)
     35