+2021-07-01 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac: Call SIM_AC_OPTION_RESERVED_BITS.
+ (sim_reserved_bits): Delete.
+ * m4/sim_ac_option_reserved_bits.m4: Delete first arg. Define
+ WITH_RESERVED_BITS.
+ * m4/sim_ac_output.m4 (sim_reserved_bits): Delete.
+ * aclocal.m4, config.h.in, configure, Makefile.in: Regenerate.
+
2021-07-01 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Remove [true] from m32r SIM_TARGET call.
$(top_srcdir)/m4/sim_ac_option_hardware.m4 \
$(top_srcdir)/m4/sim_ac_option_inline.m4 \
$(top_srcdir)/m4/sim_ac_option_profile.m4 \
+ $(top_srcdir)/m4/sim_ac_option_reserved_bits.m4 \
$(top_srcdir)/m4/sim_ac_option_scache.m4 \
$(top_srcdir)/m4/sim_ac_option_stdio.m4 \
$(top_srcdir)/m4/sim_ac_option_trace.m4 \
sim_float = @sim_float@
sim_hw_cflags = @sim_hw_cflags@
sim_hw_sockser = @sim_hw_sockser@
-sim_reserved_bits = @sim_reserved_bits@
srcdir = @srcdir@
subdirs = @subdirs@
sysconfdir = @sysconfdir@
m4_include([m4/sim_ac_option_hardware.m4])
m4_include([m4/sim_ac_option_inline.m4])
m4_include([m4/sim_ac_option_profile.m4])
+m4_include([m4/sim_ac_option_reserved_bits.m4])
m4_include([m4/sim_ac_option_scache.m4])
m4_include([m4/sim_ac_option_stdio.m4])
m4_include([m4/sim_ac_option_trace.m4])
+2021-07-01 Mike Frysinger <vapier@gentoo.org>
+
+ * configure: Regenerate.
+
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Delete SIM_AC_OPTION_SCACHE call.
LIBOBJS
SIM_COMMON_BUILD_FALSE
SIM_COMMON_BUILD_TRUE
-sim_reserved_bits
sim_float
cgen_breaks
target_alias
-
SIM_COMMON_BUILD_TRUE='#'
SIM_COMMON_BUILD_FALSE=
+2021-07-01 Mike Frysinger <vapier@gentoo.org>
+
+ * Make-common.in (SIM_RESERVED_BITS): Delete.
+
2021-07-01 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (GUILE): New variable.
SIM_BITSIZE = @sim_bitsize@
SIM_FLOAT = @sim_float@
-SIM_RESERVED_BITS = @sim_reserved_bits@
SIM_WARN_CFLAGS = $(WARN_CFLAGS)
SIM_WERROR_CFLAGS = $(WERROR_CFLAGS)
$(SIM_FLOAT) \
$(SIM_HW_CFLAGS) \
$(SIM_INLINE) \
- $(SIM_RESERVED_BITS) \
$(SIM_WARN_CFLAGS) \
$(SIM_WERROR_CFLAGS) \
$(SIM_HARDWARE)
/* Sim profile settings */
#undef WITH_PROFILE
+/* Sim reserved bits setting */
+#undef WITH_RESERVED_BITS
+
/* Sim cache szie */
#undef WITH_SCACHE
LTLIBOBJS
SIM_RX_CYCLE_ACCURATE_FLAGS
SIM_FRV_TRAPDUMP_FLAGS
-sim_reserved_bits
sim_float
sim_bitsize
SIM_INLINE
enable_sim_hardware
enable_sim_inline
enable_sim_profile
+enable_sim_reserved_bits
enable_sim_scache
enable_sim_stdio
enable_sim_trace
Specify which functions should be inlined
--enable-sim-profile=opts
Enable profiling flags
+ --enable-sim-reserved-bits
+ Specify whether to check reserved bits in
+ instruction
--enable-sim-scache=size
Specify simulator execution cache size
--enable-sim-stdio Specify whether to use stdio for console
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12182 "configure"
+#line 12185 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12288 "configure"
+#line 12291 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
$as_echo "$sim_profile" >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
+$as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
+# 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
+yes|no) ;;
+*) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
+esac
+fi
+
+if test "x${enable_sim_reserved_bits}" != xno; then
+ sim_reserved_bits=1
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ sim_reserved_bits=0
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define WITH_RESERVED_BITS $sim_reserved_bits
+_ACEOF
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
$as_echo_n "checking for sim cache size... " >&6; }
sim_scache="16384"
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
$as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
# Check whether --enable-sim-frv-trapdump was given.
SIM_AC_OPTION_HARDWARE
SIM_AC_OPTION_INLINE
SIM_AC_OPTION_PROFILE
+SIM_AC_OPTION_RESERVED_BITS
SIM_AC_OPTION_SCACHE
SIM_AC_OPTION_STDIO
SIM_AC_OPTION_TRACE
dnl respective SIM_AC_OPTION_xxx call above, we can drop these.
AC_SUBST(sim_bitsize)
AC_SUBST(sim_float)
-AC_SUBST(sim_reserved_bits)
dnl Some arches have unique configure flags.
m4_include([frv/acinclude.m4])
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/>.
AC_DEFUN([SIM_AC_OPTION_RESERVED_BITS],
-[
-default_sim_reserved_bits="ifelse([$1],,1,[$1])"
+[dnl
+AC_MSG_CHECKING([whether to check reserved bits in instruction])
AC_ARG_ENABLE(sim-reserved-bits,
[AS_HELP_STRING([--enable-sim-reserved-bits],
[Specify whether to check reserved bits in instruction])],
[case "${enableval}" in
- yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
- no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
- *) AC_MSG_ERROR("--enable-sim-reserved-bits does not take a value"); sim_reserved_bits="";;
-esac
-if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
- echo "Setting reserved flags = $sim_reserved_bits" 6>&1
-fi],[sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"])dnl
+yes|no) ;;
+*) AC_MSG_ERROR("--enable-sim-reserved-bits does not take a value");;
+esac])
+if test "x${enable_sim_reserved_bits}" != xno; then
+ sim_reserved_bits=1
+ AC_MSG_RESULT([yes])
+else
+ sim_reserved_bits=0
+ AC_MSG_RESULT([no])
+fi
+AC_DEFINE_UNQUOTED([WITH_RESERVED_BITS], [$sim_reserved_bits], [Sim reserved bits setting])
])
-AC_SUBST(sim_reserved_bits)
dnl when the rest of the code is in the respective macros.
AC_SUBST(sim_bitsize)
AC_SUBST(sim_float)
-AC_SUBST(sim_reserved_bits)
dnl Used by common/Make-common.in to see which configure script created it.
SIM_COMMON_BUILD_TRUE='#'
+2021-07-01 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac: Delete SIM_AC_OPTION_RESERVED_BITS call.
+ * aclocal.m4: Regenerate.
+ * configure: Regenerate.
+
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
m4_include([../m4/sim_ac_option_bitsize.m4])
m4_include([../m4/sim_ac_option_float.m4])
-m4_include([../m4/sim_ac_option_reserved_bits.m4])
m4_include([../m4/sim_ac_output.m4])
PACKAGE_NAME
PATH_SEPARATOR
SHELL
-sim_reserved_bits
sim_float
sim_bitsize'
ac_subst_files=''
ac_user_opts='
enable_option_checking
-enable_sim_reserved_bits
enable_sim_bitsize
enable_sim_float
'
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --enable-sim-reserved-bits
- Specify whether to check reserved bits in
- instruction
--enable-sim-bitsize=N Specify target bitsize (32 or 64)
--enable-sim-float Specify that the target processor has floating point
hardware
-
-default_sim_reserved_bits="1"
-# 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
- yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
- no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
- *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
-esac
-if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
- echo "Setting reserved flags = $sim_reserved_bits" 6>&1
-fi
-else
- sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
-fi
-
-
# DEPRECATED
#
# Instead of defining a `subtarget' macro, code should be checking
-
SIM_COMMON_BUILD_TRUE='#'
SIM_COMMON_BUILD_FALSE=
AC_INIT(Makefile.in)
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
-dnl Options available in this module
-SIM_AC_OPTION_RESERVED_BITS(1)
-
# DEPRECATED
#
# Instead of defining a `subtarget' macro, code should be checking
+2021-07-01 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac: Delete SIM_AC_OPTION_RESERVED_BITS call.
+ * aclocal.m4: Regenerate.
+ * configure: Regenerate.
+
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
m4_include([../m4/sim_ac_option_bitsize.m4])
-m4_include([../m4/sim_ac_option_reserved_bits.m4])
m4_include([../m4/sim_ac_output.m4])
PACKAGE_NAME
PATH_SEPARATOR
SHELL
-sim_reserved_bits
sim_bitsize'
ac_subst_files=''
ac_user_opts='
enable_option_checking
-enable_sim_reserved_bits
enable_sim_bitsize
'
ac_precious_vars='build_alias
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --enable-sim-reserved-bits
- Specify whether to check reserved bits in
- instruction
--enable-sim-bitsize=N Specify target bitsize (32 or 64)
Report bugs to the package provider.
-
-default_sim_reserved_bits="1"
-# 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
- yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
- no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
- *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
-esac
-if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
- echo "Setting reserved flags = $sim_reserved_bits" 6>&1
-fi
-else
- sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
-fi
-
wire_word_bitsize="32"
wire_word_msb="31"
wire_address_bitsize=""
-
SIM_COMMON_BUILD_TRUE='#'
SIM_COMMON_BUILD_FALSE=
AC_INIT(Makefile.in)
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
-SIM_AC_OPTION_RESERVED_BITS
SIM_AC_OPTION_BITSIZE(32,31)
SIM_AC_OUTPUT
+2021-07-01 Mike Frysinger <vapier@gentoo.org>
+
+ * configure: Regenerate.
+
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Delete SIM_AC_OPTION_SCACHE call.
LIBOBJS
SIM_COMMON_BUILD_FALSE
SIM_COMMON_BUILD_TRUE
-sim_reserved_bits
sim_float
cgen_breaks
target_alias
-
SIM_COMMON_BUILD_TRUE='#'
SIM_COMMON_BUILD_FALSE=
+2021-07-01 Mike Frysinger <vapier@gentoo.org>
+
+ * Makefile.in (RESERVED_CFLAGS): Delete.
+ * configure.ac: Delete sim-reserved-bits.
+ * std-config.h (WITH_RESERVED_BITS): Delete.
+ * configure: Regenerate.
+
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Add -W flags from ../m4/sim_ac_option_warnings.m4.
HOSTBITSIZE_CFLAGS = @sim_hostbitsize@
TIMEBASE_CFLAGS = @sim_timebase@
FLOAT_CFLAGS = @sim_float@
-RESERVED_CFLAGS = @sim_reserved@
MONITOR_CFLAGS = @sim_monitor@
MODEL_CFLAGS = @sim_model@ @sim_default_model@ @sim_model_issue@
TERMIO_CFLAGS = @sim_termio@
$(HOSTBITSIZE_CFLAGS) \
$(TIMEBASE_CFLAGS) \
$(FLOAT_CFLAGS) \
- $(RESERVED_CFLAGS) \
$(MONITOR_CFLAGS) \
$(MODEL_CFLAGS) \
$(TERMIO_CFLAGS) \
sim_default_model
sim_model
sim_monitor
-sim_reserved
sim_float
sim_timebase
sim_hostbitsize
enable_sim_monitor
enable_sim_opcode
enable_sim_packages
-enable_sim_reserved_bits
enable_sim_smp
enable_sim_switch
enable_sim_timebase
--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-reserved-bits Specify whether to check reserved bits in instruction.
--enable-sim-smp=n Specify number of processors to configure for.
--enable-sim-switch Use a switch instead of a table for instruction call.
--enable-sim-timebase Specify whether the PPC timebase is supported.
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
- yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
- no) sim_reserved="-DWITH_RESERVED_BITS=0";;
- *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved="";;
-esac
-if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
- echo "Setting reserved flags = $sim_reserved" 6>&1
-fi
-else
- sim_reserved=""
-fi
-
-
# Check whether --enable-sim-smp was given.
if test "${enable_sim_smp+set}" = set; then :
enableval=$enable_sim_smp; case "${enableval}" in
-
ac_config_files="$ac_config_files Makefile"
fi])dnl
-AC_ARG_ENABLE(sim-reserved-bits,
-[ --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.],
-[case "${enableval}" in
- yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
- no) sim_reserved="-DWITH_RESERVED_BITS=0";;
- *) AC_MSG_ERROR("--enable-sim-reserved-bits does not take a value"); sim_reserved="";;
-esac
-if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
- echo "Setting reserved flags = $sim_reserved" 6>&1
-fi],[sim_reserved=""])dnl
-
-
AC_ARG_ENABLE(sim-smp,
[ --enable-sim-smp=n Specify number of processors to configure for.],
[case "${enableval}" in
AC_SUBST(sim_hostbitsize)
AC_SUBST(sim_timebase)
AC_SUBST(sim_float)
-AC_SUBST(sim_reserved)
AC_SUBST(sim_monitor)
AC_SUBST(sim_model)
AC_SUBST(sim_default_model)
Control the inclusion of debugging code. */
-/* Whether to check instructions for reserved bits being set */
-
-#ifndef WITH_RESERVED_BITS
-#define WITH_RESERVED_BITS 1
-#endif
-
/* include monitoring code */
#define MONITOR_INSTRUCTION_ISSUE 1
+2021-07-01 Mike Frysinger <vapier@gentoo.org>
+
+ * configure: Regenerate.
+
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
LIBOBJS
SIM_COMMON_BUILD_FALSE
SIM_COMMON_BUILD_TRUE
-sim_reserved_bits
sim_float
cgen_breaks
target_alias
-
SIM_COMMON_BUILD_TRUE='#'
SIM_COMMON_BUILD_FALSE=
+2021-07-01 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac: Delete SIM_AC_OPTION_RESERVED_BITS call.
+ * aclocal.m4: Regenerate.
+ * configure: Regenerate.
+
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
m4_include([../m4/sim_ac_option_bitsize.m4])
-m4_include([../m4/sim_ac_option_reserved_bits.m4])
m4_include([../m4/sim_ac_output.m4])
PACKAGE_NAME
PATH_SEPARATOR
SHELL
-sim_reserved_bits
sim_bitsize'
ac_subst_files=''
ac_user_opts='
enable_option_checking
-enable_sim_reserved_bits
enable_sim_bitsize
'
ac_precious_vars='build_alias
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --enable-sim-reserved-bits
- Specify whether to check reserved bits in
- instruction
--enable-sim-bitsize=N Specify target bitsize (32 or 64)
Report bugs to the package provider.
-
-default_sim_reserved_bits="1"
-# 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
- yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
- no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
- *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
-esac
-if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
- echo "Setting reserved flags = $sim_reserved_bits" 6>&1
-fi
-else
- sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
-fi
-
wire_word_bitsize="32"
wire_word_msb="31"
wire_address_bitsize=""
-
SIM_COMMON_BUILD_TRUE='#'
SIM_COMMON_BUILD_FALSE=
AC_INIT(Makefile.in)
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
-SIM_AC_OPTION_RESERVED_BITS
SIM_AC_OPTION_BITSIZE(32,31)
SIM_AC_OUTPUT