diff options
Diffstat (limited to 'sim/frv/configure.ac')
-rw-r--r-- | sim/frv/configure.ac | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/sim/frv/configure.ac b/sim/frv/configure.ac index 785a3bc..7430641 100644 --- a/sim/frv/configure.ac +++ b/sim/frv/configure.ac @@ -4,20 +4,22 @@ AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config]) SIM_AC_OPTION_SCACHE(16384) -# -# Enable making unknown traps dump out registers -# -AC_ARG_ENABLE(sim-trapdump, -[AS_HELP_STRING([--enable-sim-trapdump], +dnl Enable making unknown traps dump out registers +AC_MSG_CHECKING([whether sim frv should dump cpu state on unknown traps]) +AC_ARG_ENABLE(sim-frv-trapdump, +[AS_HELP_STRING([--enable-sim-frv-trapdump], [Make unknown traps dump the registers])], [case "${enableval}" in - yes) sim_trapdump="-DTRAPDUMP=1";; - no) sim_trapdump="-DTRAPDUMP=0";; - *) AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-trapdump"); sim_trapdump="";; -esac -if test x"$silent" != x"yes" && test x"$sim_trapdump" != x""; then - echo "Setting sim_trapdump = $sim_trapdump" 6>&1 -fi],[sim_trapdump=""])dnl -AC_SUBST(sim_trapdump) +yes|no) ;; +*) AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-trapdump");; +esac]) +if test "x${enable_sim_frv_trapdump}" != xno; then + SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1" + AC_MSG_RESULT([yes]) +else + SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0" + AC_MSG_RESULT([no]) +fi +AC_SUBST(SIM_FRV_TRAPDUMP_FLAGS) SIM_AC_OUTPUT |