|
|
|
@ -9,7 +9,7 @@ AC_ARG_ENABLE(sim-cflags, |
|
|
|
no) sim_cflags="";; |
|
|
|
*) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
|
|
|
esac |
|
|
|
if test x"$sim_cflags" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then |
|
|
|
echo "Setting sim cflags = $sim_cflags" 6>&1 |
|
|
|
fi],[sim_cflags=""])dnl |
|
|
|
|
|
|
|
@ -20,7 +20,7 @@ AC_ARG_ENABLE(sim-warnings, |
|
|
|
no) sim_warnings="-w";; |
|
|
|
*) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
|
|
|
esac |
|
|
|
if test x"$sim_warnings" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then |
|
|
|
echo "Setting warning flags = $sim_warnings" 6>&1 |
|
|
|
fi],[sim_warnings=""])dnl |
|
|
|
|
|
|
|
@ -31,7 +31,7 @@ AC_ARG_ENABLE(sim-config, |
|
|
|
no) sim_config="std-config.h";; |
|
|
|
*) sim_config="${enableval}";; |
|
|
|
esac |
|
|
|
if test x"$sim_config" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_config" != x""; then |
|
|
|
echo "Setting config flags = $sim_config" 6>&1 |
|
|
|
fi],[sim_config="std-config.h"; echo "Setting config flags = $sim_config" 6>&1])dnl |
|
|
|
|
|
|
|
@ -42,7 +42,7 @@ AC_ARG_ENABLE(sim-opcode, |
|
|
|
no) sim_opcode="ppc-opcode-simple";; |
|
|
|
*) sim_opcode="ppc-opcode-${enableval}";; |
|
|
|
esac |
|
|
|
if test x"$sim_opcode" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then |
|
|
|
echo "Setting opcode flags = $sim_opcode" 6>&1 |
|
|
|
fi],[sim_opcode="ppc-opcode-simple"; echo "Setting opcode flags = $sim_opcode"])dnl |
|
|
|
|
|
|
|
@ -52,9 +52,12 @@ AC_ARG_ENABLE(sim-switch, |
|
|
|
yes) sim_switch="-s";; |
|
|
|
*) sim_switch="";; |
|
|
|
esac |
|
|
|
if test x"$sim_switch" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then |
|
|
|
echo "Setting switch flags = $sim_switch" 6>&1 |
|
|
|
fi],[sim_switch="-s"; echo "Setting switch flags = $sim_switch" 6>&1])dnl |
|
|
|
fi],[sim_switch="-s"; |
|
|
|
if test x"$silent" != x"yes"; then |
|
|
|
echo "Setting switch flags = $sim_switch" 6>&1 |
|
|
|
fi])dnl |
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-duplicate, |
|
|
|
[ --enable-sim-duplicate Expand (duplicate) semantic functions.], |
|
|
|
@ -62,9 +65,12 @@ AC_ARG_ENABLE(sim-duplicate, |
|
|
|
yes) sim_dup="-e";; |
|
|
|
*) sim_dup="";; |
|
|
|
esac |
|
|
|
if test x"$sim_dup" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then |
|
|
|
echo "Setting duplicate flags = $sim_dup" 6>&1 |
|
|
|
fi],[sim_dup="-e"; echo "Setting duplicate flags = $sim_dup" 6>&1])dnl |
|
|
|
fi],[sim_dup="-e" |
|
|
|
if test x"$silent" != x"yes"; then |
|
|
|
echo "Setting duplicate flags = $sim_dup" 6>&1 |
|
|
|
fi])dnl |
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-filter, |
|
|
|
[ --enable-sim-filter=rule Specify filter rules.], |
|
|
|
@ -72,9 +78,12 @@ AC_ARG_ENABLE(sim-filter, |
|
|
|
yes) sim_filter="";; |
|
|
|
*) sim_filter="-f $enableval";; |
|
|
|
esac |
|
|
|
if test x"$sim_filter" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then |
|
|
|
echo "Setting filter flags = $sim_filter" 6>&1 |
|
|
|
fi],[sim_filter="-f 64"; echo "Setting filter flags = $sim_filter" 6>&1])dnl |
|
|
|
fi],[sim_filter="-f 64" |
|
|
|
if test x"$silent" != x"yes"; then |
|
|
|
echo "Setting filter flags = $sim_filter" 6>&1 |
|
|
|
fi])dnl |
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-icache, |
|
|
|
[ --enable-sim-icache=size Specify instruction cache size.], |
|
|
|
@ -106,10 +115,13 @@ case "$enableval" in |
|
|
|
fi |
|
|
|
done;; |
|
|
|
esac |
|
|
|
if test x"$sim_inline" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then |
|
|
|
echo "Setting inline flags = $sim_inline" 6>&1 |
|
|
|
fi],[if test x"$GCC" != ""; then |
|
|
|
sim_inline="-DDEFAULT_INLINE=2"; echo "Setting inline flags = $sim_inline" 6>&1 |
|
|
|
sim_inline="-DDEFAULT_INLINE=2" |
|
|
|
if test x"$silent" != x"yes"; then |
|
|
|
echo "Setting inline flags = $sim_inline" 6>&1 |
|
|
|
fi |
|
|
|
else |
|
|
|
sim_inline="" |
|
|
|
fi])dnl |
|
|
|
@ -121,7 +133,7 @@ AC_ARG_ENABLE(sim-bswap, |
|
|
|
no) sim_bswap="-DWITH_BSWAP=0";; |
|
|
|
*) sim_bswap="";; |
|
|
|
esac |
|
|
|
if test x"$sim_bswap" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then |
|
|
|
echo "Setting bswap flags = $sim_bswap" 6>&1 |
|
|
|
fi],[sim_bswap=""])dnl |
|
|
|
|
|
|
|
@ -138,7 +150,7 @@ AC_ARG_ENABLE(sim-endian, |
|
|
|
l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";; |
|
|
|
*) sim_endian="";; |
|
|
|
esac |
|
|
|
if test x"$sim_endian" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then |
|
|
|
echo "Setting endian flags = $sim_endian" 6>&1 |
|
|
|
fi],[sim_endian=""])dnl |
|
|
|
|
|
|
|
@ -150,7 +162,7 @@ AC_ARG_ENABLE(sim-hostendian, |
|
|
|
l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";; |
|
|
|
*) sim_hostendian="";; |
|
|
|
esac |
|
|
|
if test x"$sim_hostendian" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then |
|
|
|
echo "Setting hostendian flags = $sim_hostendian" 6>&1 |
|
|
|
fi],[sim_hostendian=""])dnl |
|
|
|
|
|
|
|
@ -161,9 +173,12 @@ AC_ARG_ENABLE(sim-smp, |
|
|
|
no) sim_smp="-DWITH_SMP=0";; |
|
|
|
*) sim_smp="-DWITH_SMP=$enableval";; |
|
|
|
esac |
|
|
|
if test x"$sim_smp" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then |
|
|
|
echo "Setting smp flags = $sim_smp" 6>&1 |
|
|
|
fi],[sim_smp="-DWITH_SMP=0"; echo "Setting smp flags = $sim_smp" 6>&1])dnl |
|
|
|
fi],[sim_smp="-DWITH_SMP=0" |
|
|
|
if test x"$silent" != x"yes"; then |
|
|
|
echo "Setting smp flags = $sim_smp" 6>&1 |
|
|
|
fi])dnl |
|
|
|
|
|
|
|
AC_ARG_ENABLE(sim-bitsize, |
|
|
|
[ --enable-sim-bitsize=n Specify target bitsize (32 or 64).], |
|
|
|
@ -172,7 +187,7 @@ AC_ARG_ENABLE(sim-bitsize, |
|
|
|
no) sim_bitsize="";; |
|
|
|
*) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";; |
|
|
|
esac |
|
|
|
if test x"$sim_bitsize" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then |
|
|
|
echo "Setting bitsize flags = $sim_bitsize" 6>&1 |
|
|
|
fi],[sim_bitsize=""])dnl |
|
|
|
|
|
|
|
@ -183,7 +198,7 @@ AC_ARG_ENABLE(sim-hostbitsize, |
|
|
|
no) sim_hostbitsize="";; |
|
|
|
*) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";; |
|
|
|
esac |
|
|
|
if test x"$sim_hostbitsize" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then |
|
|
|
echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1 |
|
|
|
fi],[sim_hostbitsize=""])dnl |
|
|
|
|
|
|
|
@ -195,7 +210,7 @@ AC_ARG_ENABLE(sim-env, |
|
|
|
user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";; |
|
|
|
*) sim_env="";; |
|
|
|
esac |
|
|
|
if test x"$sim_env" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_env" != x""; then |
|
|
|
echo "Setting env flags = $sim_env" 6>&1 |
|
|
|
fi],[sim_env=""])dnl |
|
|
|
|
|
|
|
@ -206,7 +221,7 @@ AC_ARG_ENABLE(sim-timebase, |
|
|
|
no) sim_timebase="-DWITH_TIME_BASE=0";; |
|
|
|
*) sim_timebase="";; |
|
|
|
esac |
|
|
|
if test x"$sim_timebase" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then |
|
|
|
echo "Setting timebase flags = $sim_timebase" 6>&1 |
|
|
|
fi],[sim_timebase=""])dnl |
|
|
|
|
|
|
|
@ -217,7 +232,7 @@ AC_ARG_ENABLE(sim-alignment, |
|
|
|
no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";; |
|
|
|
*) sim_alignment="-DWITH_ALIGNMENT=$enableval";; |
|
|
|
esac |
|
|
|
if test x"$sim_alignment" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then |
|
|
|
echo "Setting alignment flags = $sim_alignment" 6>&1 |
|
|
|
fi],[sim_alignment=""])dnl |
|
|
|
|
|
|
|
@ -228,7 +243,7 @@ AC_ARG_ENABLE(sim-trace, |
|
|
|
no) sim_trace="-DWITH_TRACE=0";; |
|
|
|
*) sim_trace="";; |
|
|
|
esac |
|
|
|
if test x"$sim_trace" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then |
|
|
|
echo "Setting trace flags = $sim_trace" 6>&1 |
|
|
|
fi],[sim_trace=""])dnl |
|
|
|
|
|
|
|
@ -239,7 +254,7 @@ AC_ARG_ENABLE(sim-assert, |
|
|
|
no) sim_assert="-DWITH_ASSERT=0";; |
|
|
|
*) sim_assert="";; |
|
|
|
esac |
|
|
|
if test x"$sim_assert" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then |
|
|
|
echo "Setting assert flags = $sim_assert" 6>&1 |
|
|
|
fi],[sim_assert=""])dnl |
|
|
|
|
|
|
|
@ -250,7 +265,7 @@ AC_ARG_ENABLE(sim-float, |
|
|
|
no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";; |
|
|
|
*) sim_float="";; |
|
|
|
esac |
|
|
|
if test x"$sim_float" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_float" != x""; then |
|
|
|
echo "Setting float flags = $sim_float" 6>&1 |
|
|
|
fi],[sim_float=""])dnl |
|
|
|
|
|
|
|
@ -263,7 +278,7 @@ AC_ARG_ENABLE(sim-monitor, |
|
|
|
memory) sim_mon="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";; |
|
|
|
*) sim_mon="-DWITH_MON='$enableval'";; |
|
|
|
esac |
|
|
|
if test x"$sim_mon" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_mon" != x""; then |
|
|
|
echo "Setting monitor flags = $sim_mon" 6>&1 |
|
|
|
fi],[sim_mon=""])dnl |
|
|
|
|
|
|
|
@ -274,7 +289,7 @@ AC_ARG_ENABLE(sim-function-unit, |
|
|
|
no) sim_func="-DWITH_FUNCTION_UNIT=0";; |
|
|
|
*) sim_func="";; |
|
|
|
esac |
|
|
|
if test x"$sim_func" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_func" != x""; then |
|
|
|
echo "Setting function-unit flags = $sim_func" 6>&1 |
|
|
|
fi],[sim_func=""])dnl |
|
|
|
|
|
|
|
@ -285,7 +300,7 @@ AC_ARG_ENABLE(sim-model, |
|
|
|
no) sim_model="";; |
|
|
|
*) sim_model="-DWITH_PPC_MODEL=${enableval}";; |
|
|
|
esac |
|
|
|
if test x"$sim_model" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_model" != x""; then |
|
|
|
echo "Setting model flags = $sim_model" 6>&1 |
|
|
|
fi],[sim_model=""])dnl |
|
|
|
|
|
|
|
@ -296,7 +311,7 @@ AC_ARG_ENABLE(sim-default-model, |
|
|
|
no) sim_default_model="";; |
|
|
|
*) sim_default_model="-DWITH_DEFAULT_PPC_MODEL=${enableval}";; |
|
|
|
esac |
|
|
|
if test x"$sim_default_model" != x""; then |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then |
|
|
|
echo "Setting default-model flags = $sim_default_model" 6>&1 |
|
|
|
fi],[sim_model=""])dnl |
|
|
|
|
|
|
|
|