sim_callback
sim_devzero
sim_termio
-sim_stdio
sim_model_issue
sim_model
sim_monitor
sim_reserved
-sim_trace
sim_timebase
-sim_env
sim_hostbitsize
sim_igen_smp
-sim_bswap
+sim_smp
+sim_hostendian
+sim_xor_endian
sim_pk_obj
sim_pk_src
sim_hw_obj
sim_config
sim_line_nr
sim_warnings
-sim_cflags
RANLIB
AR
HDEFINES
INSTALL_PROGRAM
WERROR_CFLAGS
WARN_CFLAGS
-sim_xor_endian
-sim_stdcall
-sim_smp
sim_reserved_bits
-sim_regparm
-sim_packages
sim_inline
sim_hw
sim_hw_objs
sim_default_model
sim_scache
sim_float
-sim_hostendian
sim_endian
sim_bitsize
-sim_assert
sim_alignment
-sim_environment
target_alias
host_alias
build_alias
enable_sim_alignment
enable_sim_assert
enable_sim_bitsize
-enable_sim_bswap
-enable_sim_cflags
enable_sim_config
enable_sim_decode_mechanism
enable_sim_default_model
enable_sim_monitor
enable_sim_opcode
enable_sim_packages
-enable_sim_regparm
enable_sim_reserved_bits
enable_sim_smp
-enable_sim_stdcall
enable_sim_stdio
enable_sim_switch
enable_sim_timebase
--enable-sim-alignment=align Specify strict or nonstrict alignment.
--enable-sim-assert Specify whether to perform random assertions.
--enable-sim-bitsize=n Specify target bitsize (32 or 64).
- --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums.
- --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
--enable-sim-config=file Override default config file
--enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
--enable-sim-default-model=which Specify default PowerPC to model.
--enable-sim-monitor=mon Specify whether to enable monitoring events.
--enable-sim-opcode=which Override default opcode lookup.
--enable-sim-packages=list Specify the packages to be included in the build.
- --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific.
--enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
--enable-sim-smp=n Specify number of processors to configure for.
- --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific.
--enable-sim-stdio Specify whether to use stdio for console input/output.
--enable-sim-switch Use a switch instead of a table for instruction call.
--enable-sim-timebase Specify whether the PPC timebase is supported.
# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
# It is intended to be invoked last.
#
-# The simulator's configure.in should look like:
+# The simulator's configure.ac should look like:
#
# dnl Process this file with autoconf to produce a configure script.
# AC_PREREQ(2.64)dnl
-
-
-
-
-
-sim_inline="-DDEFAULT_INLINE=0"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
+$as_echo_n "checking whether to enable sim asserts... " >&6; }
+sim_assert="1"
# Check whether --enable-sim-assert was given.
if test "${enable_sim_assert+set}" = set; then :
enableval=$enable_sim_assert; case "${enableval}" in
- yes) sim_assert="-DWITH_ASSERT=1";;
- no) sim_assert="-DWITH_ASSERT=0";;
- *) as_fn_error "\"--enable-sim-assert does not take a value\"" "$LINENO" 5; sim_assert="";;
+ yes) sim_assert="1";;
+ no) sim_assert="0";;
+ *) as_fn_error "--enable-sim-assert does not take a value" "$LINENO" 5;;
esac
-if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
- echo "Setting assert flags = $sim_assert" 6>&1
-fi
-else
- sim_assert=""
fi
+cat >>confdefs.h <<_ACEOF
+#define WITH_ASSERT $sim_assert
+_ACEOF
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
+$as_echo "$sim_assert" >&6; }
+
# Check whether --enable-sim-bitsize was given.
if test "${enable_sim_bitsize+set}" = set; then :
fi
-# Check whether --enable-sim-bswap was given.
-if test "${enable_sim_bswap+set}" = set; then :
- enableval=$enable_sim_bswap; case "${enableval}" in
- yes) sim_bswap="-DWITH_BSWAP=1";;
- no) sim_bswap="-DWITH_BSWAP=0";;
- *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
-esac
-if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
- echo "Setting bswap flags = $sim_bswap" 6>&1
-fi
-else
- sim_bswap=""
-fi
-
-
-# Check whether --enable-sim-cflags was given.
-if test "${enable_sim_cflags+set}" = set; then :
- enableval=$enable_sim_cflags; case "${enableval}" in
- yes) sim_cflags="-O2 -fomit-frame-pointer";;
- no) sim_cflags="";;
- *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
-esac
-if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
- echo "Setting sim cflags = $sim_cflags" 6>&1
-fi
-else
- sim_cflags=""
-fi
-
-
# Check whether --enable-sim-config was given.
if test "${enable_sim_config+set}" = set; then :
enableval=$enable_sim_config; case "${enableval}" in
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
+$as_echo_n "checking default sim environment setting... " >&6; }
+sim_env="0"
# Check whether --enable-sim-env was given.
if test "${enable_sim_env+set}" = set; then :
enableval=$enable_sim_env; case "${enableval}" in
- operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
- virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
- user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
- no) sim_env="-DWITH_ENVIRONMENT=0";;
- *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-env\"" "$LINENO" 5; sim_env="";;
+ operating | os | oea) sim_env="OPERATING_ENVIRONMENT";;
+ virtual | vea) sim_env="VIRTUAL_ENVIRONMENT";;
+ user | uea) sim_env="USER_ENVIRONMENT";;
+ no) sim_env="0";;
+ *) as_fn_error "Unknown value $enableval passed to --enable-sim-env" "$LINENO" 5;;
esac
-if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
- echo "Setting env flags = $sim_env" 6>&1
-fi
-else
- sim_env=""
fi
+cat >>confdefs.h <<_ACEOF
+#define WITH_ENVIRONMENT $sim_env
+_ACEOF
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_env" >&5
+$as_echo "$sim_env" >&6; }
+
# Check whether --enable-sim-filter was given.
if test "${enable_sim_filter+set}" = set; then :
fi
-# Check whether --enable-sim-regparm was given.
-if test "${enable_sim_regparm+set}" = set; then :
- enableval=$enable_sim_regparm; case "${enableval}" in
- 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";;
- no) sim_regparm="" ;;
- yes) sim_regparm="-DWITH_REGPARM=3";;
- *) as_fn_error "\"Unknown value $enableval for --enable-sim-regparm\"" "$LINENO" 5; sim_regparm="";;
-esac
-if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then
- echo "Setting regparm flags = $sim_regparm" 6>&1
-fi
-else
- sim_regparm=""
-fi
-
-
# Check whether --enable-sim-reserved-bits was given.
if test "${enable_sim_reserved_bits+set}" = set; then :
enableval=$enable_sim_reserved_bits; case "${enableval}" in
fi
-# Check whether --enable-sim-stdcall was given.
-if test "${enable_sim_stdcall+set}" = set; then :
- enableval=$enable_sim_stdcall; case "${enableval}" in
- no) sim_stdcall="" ;;
- std*) sim_stdcall="-DWITH_STDCALL=1";;
- yes) sim_stdcall="-DWITH_STDCALL=1";;
- *) as_fn_error "\"Unknown value $enableval for --enable-sim-stdcall\"" "$LINENO" 5; sim_stdcall="";;
-esac
-if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then
- echo "Setting function call flags = $sim_stdcall" 6>&1
-fi
-else
- sim_stdcall=""
-fi
-
-
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
+$as_echo_n "checking for sim stdio debug behavior... " >&6; }
+sim_stdio=0
# Check whether --enable-sim-stdio was given.
if test "${enable_sim_stdio+set}" = set; then :
enableval=$enable_sim_stdio; case "${enableval}" in
- yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
- no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
- *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
+ yes) sim_stdio="DO_USE_STDIO";;
+ no) sim_stdio="DONT_USE_STDIO";;
+ *) as_fn_error "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
esac
-if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
- echo "Setting stdio flags = $sim_stdio" 6>&1
-fi
-else
- sim_stdio=""
fi
+cat >>confdefs.h <<_ACEOF
+#define WITH_STDIO $sim_stdio
+_ACEOF
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
+$as_echo "$sim_stdio" >&6; }
+
# Check whether --enable-sim-switch was given.
if test "${enable_sim_switch+set}" = set; then :
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
+$as_echo_n "checking for sim trace settings... " >&6; }
+sim_trace="1"
# Check whether --enable-sim-trace was given.
if test "${enable_sim_trace+set}" = set; then :
enableval=$enable_sim_trace; case "${enableval}" in
- yes) sim_trace="-DWITH_TRACE=1";;
- no) sim_trace="-DWITH_TRACE=0";;
- *) as_fn_error "\"--enable-sim-trace does not take a value\"" "$LINENO" 5; sim_trace="";;
+ yes) sim_trace="1";;
+ no) sim_trace="0";;
+ *) as_fn_error "--enable-sim-trace does not take a value" "$LINENO" 5;;
esac
-if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
- echo "Setting trace flags = $sim_trace" 6>&1
-fi
-else
- sim_trace=""
fi
+cat >>confdefs.h <<_ACEOF
+#define WITH_TRACE $sim_trace
+_ACEOF
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
+$as_echo "$sim_trace" >&6; }
+
# Check whether --enable-sim-warnings was given.
if test "${enable_sim_warnings+set}" = set; then :
# using the same condition.
# Use the system's zlib library.
- zlibdir=-L../zlib
- zlibinc="-I\$(srcdir)/../zlib"
+ zlibdir="-L\$(top_builddir)/../zlib"
+ zlibinc="-I\$(top_srcdir)/../zlib"
# Check whether --with-system-zlib was given.
if test "${with_system_zlib+set}" = set; then :
- withval=$with_system_zlib; zlibdir=
- zlibinc=
+ withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
+ zlibdir=
+ zlibinc=
+ fi
fi
-
-
-
-
-
-
-
-