Index: arm/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Replace configure.in. Requires autoconf 2.59 and
correctly calls AC_CONFIG_SUBDIRS.
* configure: Re-generate.
Index: common/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
* configure: Re-generate.
Index: d10v/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: erc32/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: frv/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: h8300/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: igen/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: m32r/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: m68hc11/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mcore/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mips/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mn10300/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: ppc/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: sh/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/d10v-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/frv-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/m32r-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/mips64el-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: v850/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
2005-01-11 00:14:50 +08:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2021-01-17 19:17:36 +08:00
|
|
|
dnl NB: The version here is not used. If gdb ever changes from generating its
|
|
|
|
dnl version at build time to autoconf time (like bfd et al do), we can switch.
|
|
|
|
AC_INIT([sim], [0],
|
|
|
|
[https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim],
|
|
|
|
[], [https://sourceware.org/gdb/wiki/Sim/])
|
|
|
|
|
2021-06-07 08:48:46 +08:00
|
|
|
dnl Probably should unify PKGVERSION with PACKAGE_* settings from AC_INIT.
|
|
|
|
ACX_PKGVERSION([SIM])
|
|
|
|
AC_DEFINE_UNQUOTED([PKGVERSION], ["$PKGVERSION"], [Additional package description])
|
|
|
|
dnl PACKAGE_BUGREPORT is provided by AC_INIT.
|
|
|
|
ACX_BUGURL([$PACKAGE_BUGREPORT])
|
|
|
|
AC_DEFINE_UNQUOTED([REPORT_BUGS_TO], ["$REPORT_BUGS_TO"], [Bug reporting address])
|
|
|
|
|
2021-05-18 08:34:52 +08:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
2021-01-18 03:45:25 +08:00
|
|
|
SIM_AC_TOOLCHAIN
|
2021-05-18 08:34:52 +08:00
|
|
|
SIM_AC_PLATFORM
|
2021-01-17 19:17:36 +08:00
|
|
|
|
2021-03-08 22:48:20 +08:00
|
|
|
AM_MAINTAINER_MODE
|
2021-01-17 19:17:36 +08:00
|
|
|
AM_INIT_AUTOMAKE
|
2021-06-15 07:54:04 +08:00
|
|
|
AM_SILENT_RULES([yes])
|
Index: arm/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Replace configure.in. Requires autoconf 2.59 and
correctly calls AC_CONFIG_SUBDIRS.
* configure: Re-generate.
Index: common/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
* configure: Re-generate.
Index: d10v/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: erc32/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: frv/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: h8300/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: igen/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: m32r/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: m68hc11/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mcore/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mips/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mn10300/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: ppc/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: sh/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/d10v-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/frv-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/m32r-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/mips64el-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: v850/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
2005-01-11 00:14:50 +08:00
|
|
|
|
|
|
|
# If a cpu ever has more than one simulator to choose from, use
|
|
|
|
# --enable-sim=... to choose.
|
|
|
|
AC_ARG_ENABLE(sim,
|
2015-06-24 01:58:48 +08:00
|
|
|
[AS_HELP_STRING([--enable-sim], [Enable the GNU simulator])],
|
Index: arm/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Replace configure.in. Requires autoconf 2.59 and
correctly calls AC_CONFIG_SUBDIRS.
* configure: Re-generate.
Index: common/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
* configure: Re-generate.
Index: d10v/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: erc32/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: frv/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: h8300/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: igen/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: m32r/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: m68hc11/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mcore/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mips/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mn10300/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: ppc/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: sh/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/d10v-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/frv-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/m32r-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/mips64el-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: v850/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
2005-01-11 00:14:50 +08:00
|
|
|
[case "${enableval}" in
|
|
|
|
yes | no) ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
|
|
|
|
esac])
|
|
|
|
|
2020-12-10 11:26:30 +08:00
|
|
|
AC_ARG_ENABLE([example-sims],
|
|
|
|
[AC_HELP_STRING([--enable-example-sims],
|
|
|
|
[enable example GNU simulators])])
|
|
|
|
|
2021-01-16 15:27:38 +08:00
|
|
|
AC_ARG_ENABLE(targets,
|
|
|
|
[ --enable-targets alternative target configurations],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes | "") AC_MSG_ERROR(enable-targets option must specify target names or 'all')
|
|
|
|
;;
|
|
|
|
no) enable_targets= ;;
|
|
|
|
*) enable_targets=$enableval ;;
|
|
|
|
esac])
|
|
|
|
|
|
|
|
dnl Used to keep track of which target (if any) is the default one. This is
|
|
|
|
dnl used when installing files to see if they need to be suffixed.
|
|
|
|
SIM_PRIMARY_TARGET=
|
|
|
|
AC_SUBST(SIM_PRIMARY_TARGET)
|
|
|
|
|
2022-11-07 22:30:10 +08:00
|
|
|
dnl Directories that we need to recurse into (i.e. add to $SUBDIRS).
|
2021-06-20 09:33:30 +08:00
|
|
|
SIM_SUBDIRS=
|
|
|
|
AC_SUBST(SIM_SUBDIRS)
|
|
|
|
|
2022-11-07 22:30:10 +08:00
|
|
|
dnl List of enabled arch backends.
|
|
|
|
SIM_ENABLED_ARCHES=
|
|
|
|
AC_SUBST(SIM_ENABLED_ARCHES)
|
|
|
|
|
2021-06-20 09:33:30 +08:00
|
|
|
dnl Used by common/Make-common.in to see which configure script created it.
|
|
|
|
SIM_COMMON_BUILD_TRUE=
|
|
|
|
SIM_COMMON_BUILD_FALSE='#'
|
|
|
|
AC_SUBST(SIM_COMMON_BUILD_TRUE)
|
|
|
|
AC_SUBST(SIM_COMMON_BUILD_FALSE)
|
|
|
|
|
|
|
|
AC_CONFIG_FILES(Make-common.sim:common/Make-common.in)
|
|
|
|
dnl Build a particular arch subdir.
|
|
|
|
dnl arg[1] is the arch subdir name.
|
|
|
|
dnl arg[2] is whether the arch has a dedicated configure script.
|
2021-06-18 23:12:28 +08:00
|
|
|
m4_define([SIM_BUILD_TARGET], [dnl
|
2022-11-07 22:30:10 +08:00
|
|
|
AS_VAR_APPEND([SIM_ENABLED_ARCHES], [" $1"])
|
2021-06-20 09:33:30 +08:00
|
|
|
m4_if($2, [true], [dnl
|
|
|
|
AC_CONFIG_SUBDIRS($1)
|
|
|
|
], [dnl
|
|
|
|
AC_CONFIG_FILES($1/Makefile.sim:$1/Makefile.in)
|
|
|
|
AC_CONFIG_COMMANDS([$1/Makefile],
|
|
|
|
[sed -n \
|
|
|
|
-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
|
2021-06-23 10:31:12 +08:00
|
|
|
/^srcdir = / s:$:/$1:
|
2021-06-20 09:33:30 +08:00
|
|
|
p
|
|
|
|
}' \
|
|
|
|
<Make-common.sim >$1/Makesim1.tmp
|
|
|
|
sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >$1/Makesim2.tmp
|
|
|
|
sed -e '/^## COMMON_PRE_/ r $1/Makesim1.tmp' \
|
|
|
|
-e '/^## COMMON_POST_/ r $1/Makesim2.tmp' \
|
|
|
|
<$1/Makefile.sim >$1/Makefile
|
|
|
|
rm -f $1/Makesim1.tmp $1/Makesim2.tmp
|
|
|
|
])
|
|
|
|
AS_VAR_APPEND([SIM_SUBDIRS], [" $1"])
|
|
|
|
])
|
2022-11-07 22:49:53 +08:00
|
|
|
AC_CONFIG_FILES($1/.gdbinit:common/gdbinit.in)
|
2021-06-18 23:12:28 +08:00
|
|
|
dnl Create the depdirs for ports until we can convert them to automake.
|
|
|
|
AC_CONFIG_COMMANDS([depdir-$1],
|
|
|
|
[$SHELL $ac_aux_dir/mkinstalldirs $1/$DEPDIR],
|
|
|
|
[ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR])
|
|
|
|
])
|
2021-06-20 09:33:30 +08:00
|
|
|
dnl Enable a particular arch subdir.
|
|
|
|
dnl arg[1] is the matching target triple.
|
|
|
|
dnl arg[2] is the arch subdir name.
|
|
|
|
dnl arg[3] is whether the arch has a dedicated configure script.
|
|
|
|
dnl arg[4] is any additional shell code to run for this arch.
|
2021-06-18 23:12:28 +08:00
|
|
|
m4_define([SIM_TARGET], [dnl
|
2021-10-31 14:03:16 +08:00
|
|
|
sim_enable_arch_$2=false
|
2021-01-16 15:27:38 +08:00
|
|
|
case "${targ}" in
|
|
|
|
all|$1)
|
|
|
|
if test "${targ}" = "${target}"; then
|
|
|
|
SIM_PRIMARY_TARGET=$2
|
|
|
|
fi
|
2021-06-20 09:33:30 +08:00
|
|
|
SIM_BUILD_TARGET($2, $3)
|
2021-10-31 14:03:16 +08:00
|
|
|
sim_enable_arch_$2=true
|
2021-06-20 09:33:30 +08:00
|
|
|
$4
|
2021-01-16 15:27:38 +08:00
|
|
|
;;
|
|
|
|
esac
|
2021-06-24 11:23:27 +08:00
|
|
|
SIM_AC_TOOLCHAIN_FOR_TARGET($2)
|
2021-10-31 14:03:16 +08:00
|
|
|
AM_CONDITIONAL([SIM_ENABLE_ARCH_$2], [${sim_enable_arch_$2}])
|
2021-01-16 15:27:38 +08:00
|
|
|
])
|
|
|
|
|
2021-01-16 13:03:32 +08:00
|
|
|
dnl WHEN ADDING ENTRIES TO THIS MATRIX:
|
|
|
|
dnl Make sure that the left side always has two dashes. Otherwise you can get
|
|
|
|
dnl spurious matches. Even for unambiguous cases, do this as a convention, else
|
|
|
|
dnl the table becomes a real mess to understand and maintain.
|
2021-08-20 05:21:55 +08:00
|
|
|
dnl
|
|
|
|
dnl NB: Target matching is aligned with gdb/configure.tgt. Changes must be kept
|
|
|
|
dnl in sync with that file.
|
Index: arm/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Replace configure.in. Requires autoconf 2.59 and
correctly calls AC_CONFIG_SUBDIRS.
* configure: Re-generate.
Index: common/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
* configure: Re-generate.
Index: d10v/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: erc32/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: frv/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: h8300/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: igen/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: m32r/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: m68hc11/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mcore/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mips/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mn10300/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: ppc/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: sh/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/d10v-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/frv-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/m32r-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/mips64el-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: v850/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
2005-01-11 00:14:50 +08:00
|
|
|
if test "${enable_sim}" != no; then
|
2021-01-16 13:03:32 +08:00
|
|
|
sim_igen=no
|
2021-01-16 15:27:38 +08:00
|
|
|
for targ in `echo $target $enable_targets | sed 's/,/ /g'`
|
|
|
|
do
|
|
|
|
SIM_TARGET([aarch64*-*-*], [aarch64])
|
|
|
|
SIM_TARGET([arm*-*-*], [arm])
|
|
|
|
SIM_TARGET([avr*-*-*], [avr])
|
2021-06-29 10:11:30 +08:00
|
|
|
SIM_TARGET([bfin-*-*], [bfin])
|
2022-11-07 23:59:30 +08:00
|
|
|
SIM_TARGET([bpf-*-*], [bpf])
|
2021-01-16 15:27:38 +08:00
|
|
|
SIM_TARGET([cr16*-*-*], [cr16])
|
2021-07-01 01:01:17 +08:00
|
|
|
SIM_TARGET([cris-*-* | crisv32-*-*], [cris])
|
2021-01-16 15:27:38 +08:00
|
|
|
SIM_TARGET([d10v-*-*], [d10v])
|
2021-07-01 01:01:17 +08:00
|
|
|
SIM_TARGET([frv-*-*], [frv])
|
2021-06-20 09:33:30 +08:00
|
|
|
SIM_TARGET([ft32-*-*], [ft32])
|
2021-01-16 15:27:38 +08:00
|
|
|
SIM_TARGET([h8300*-*-*], [h8300])
|
2021-07-01 01:01:17 +08:00
|
|
|
SIM_TARGET([iq2000-*-*], [iq2000])
|
|
|
|
SIM_TARGET([lm32-*-*], [lm32])
|
2021-01-16 15:27:38 +08:00
|
|
|
SIM_TARGET([m32c-*-*], [m32c])
|
2021-07-01 12:50:17 +08:00
|
|
|
SIM_TARGET([m32r-*-*], [m32r])
|
2021-01-16 15:27:38 +08:00
|
|
|
SIM_TARGET([m68hc11-*-*|m6811-*-*], [m68hc11])
|
|
|
|
SIM_TARGET([mcore-*-*], [mcore])
|
2021-08-20 05:21:55 +08:00
|
|
|
SIM_TARGET([microblaze*-*-*], [microblaze])
|
2021-06-20 09:33:30 +08:00
|
|
|
SIM_TARGET([mips*-*-*], [mips], [true], [sim_igen=yes])
|
2022-11-08 00:05:46 +08:00
|
|
|
SIM_TARGET([mn10300*-*-*], [mn10300], [], [sim_igen=yes])
|
2021-01-16 15:27:38 +08:00
|
|
|
SIM_TARGET([moxie-*-*], [moxie])
|
|
|
|
SIM_TARGET([msp430*-*-*], [msp430])
|
2022-11-08 00:04:25 +08:00
|
|
|
SIM_TARGET([or1k*-*-*], [or1k])
|
2021-08-20 05:21:55 +08:00
|
|
|
SIM_TARGET([powerpc*-*-*], [ppc], [true])
|
2021-01-16 15:27:38 +08:00
|
|
|
SIM_TARGET([pru*-*-*], [pru])
|
2022-11-07 23:56:58 +08:00
|
|
|
SIM_TARGET([riscv*-*-*], [riscv])
|
2021-01-16 15:27:38 +08:00
|
|
|
SIM_TARGET([rl78-*-*], [rl78])
|
2021-06-20 13:04:34 +08:00
|
|
|
SIM_TARGET([rx-*-*], [rx])
|
2021-01-16 15:27:38 +08:00
|
|
|
SIM_TARGET([sh*-*-*], [sh])
|
2021-08-20 05:21:55 +08:00
|
|
|
SIM_TARGET([sparc-*-*], [erc32])
|
2021-06-20 09:33:30 +08:00
|
|
|
SIM_TARGET([v850*-*-*], [v850], [true], [sim_igen=yes])
|
2021-01-16 15:27:38 +08:00
|
|
|
done
|
2020-12-10 11:26:30 +08:00
|
|
|
|
|
|
|
if test "x${enable_example_sims}" = xyes; then
|
2021-06-24 11:23:27 +08:00
|
|
|
SIM_AC_TOOLCHAIN_FOR_TARGET(example-synacor)
|
2021-06-18 23:12:28 +08:00
|
|
|
SIM_BUILD_TARGET([example-synacor])
|
2020-12-10 11:26:30 +08:00
|
|
|
fi
|
2022-11-03 19:19:13 +08:00
|
|
|
AM_CONDITIONAL([SIM_ENABLE_ARCH_examples], [test "${enable_example_sims}" = "yes"])
|
Index: arm/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Replace configure.in. Requires autoconf 2.59 and
correctly calls AC_CONFIG_SUBDIRS.
* configure: Re-generate.
Index: common/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
* configure: Re-generate.
Index: d10v/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: erc32/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: frv/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: h8300/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: igen/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: m32r/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: m68hc11/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mcore/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mips/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mn10300/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: ppc/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: sh/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/d10v-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/frv-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/m32r-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/mips64el-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: v850/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
2005-01-11 00:14:50 +08:00
|
|
|
fi
|
2021-02-22 12:35:46 +08:00
|
|
|
AM_CONDITIONAL([SIM_ENABLE_IGEN], [test "$sim_igen" = "yes"])
|
2021-11-19 08:10:28 +08:00
|
|
|
AM_CONDITIONAL([ENABLE_SIM], [test -n "$SIM_SUBDIRS"])
|
Index: arm/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Replace configure.in. Requires autoconf 2.59 and
correctly calls AC_CONFIG_SUBDIRS.
* configure: Re-generate.
Index: common/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
* configure: Re-generate.
Index: d10v/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: erc32/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: frv/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: h8300/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: igen/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: m32r/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: m68hc11/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mcore/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mips/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: mn10300/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: ppc/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: sh/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/d10v-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/frv-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/m32r-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/mips64el-elf/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: v850/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
2005-01-11 00:14:50 +08:00
|
|
|
|
2021-06-07 08:35:02 +08:00
|
|
|
dnl Standard (and optional) simulator options.
|
|
|
|
dnl Eventually all simulators will support these.
|
sim: overhaul alignment settings management
Currently, the sim-config module will abort if alignment settings
haven't been specified by the port's configure.ac. This is a bit
weird when we've allowed SIM_AC_OPTION_ALIGNMENT to seem like it's
optional to use. Thus everyone invokes it.
There are 4 alignment settings, but really only 2 matters: strict
and nonstrict. The "mixed" setting is just the default ("unset"),
and "forced" isn't used directly by anyone (it's available as a
runtime option for some ports).
The m4 macro has 2 args: the "wire" settings (which represents the
hardwired port behavior), and the default settings (which are used
if nothing else is specified). If none are specified, then the
build won't work (see above as if SIM_AC_OPTION_ALIGNMENT wasn't
called). If default settings are provided, then that is used, but
we allow the user to override at runtime. Otherwise, the "wire"
settings are used and user runtime options to change are ignored.
Most ports specify a default, or set the "wire" to nonstrict. A
few set "wire" to strict, but it's not clear that's necessary as
it doesn't make the code behavior, by default, any different. It
might make things a little faster, but we should provide the user
the choice of the compromises to make: force a specific mode at
compile time for faster runtime, or allow the choice at runtime.
More likely it seems like an oversight when these ports were
initially created, and/or copied & pasted from existing ports.
With all that backstory, let's get to what this commit does.
First kill off the idea of a compile-time default alignment and
set it to nonstrict in the common code. For any ports that want
strict alignment by default, that code is moved to sim_open while
initializing the sim. That means WITH_DEFAULT_ALIGNMENT can be
completely removed.
Moving the default alignment to the runtime also allows removal
of setting the "wire" settings at configure time. Which allows
removing of all arguments to SIM_AC_OPTION_ALIGNMENT and moving
that call to common code.
The macro logic can be reworked to not pass WITH_ALIGNMENT as -D
CPPFLAG and instead move it to config.h.
All of these taken together mean we can hoist the macro up to the
top level and share it among all sims so behavior is consistent
among all the ports.
2021-06-07 12:54:20 +08:00
|
|
|
SIM_AC_OPTION_ALIGNMENT
|
2021-06-07 06:45:05 +08:00
|
|
|
SIM_AC_OPTION_ASSERT
|
2021-06-19 22:42:37 +08:00
|
|
|
SIM_AC_OPTION_CGEN_MAINT
|
2021-06-07 08:35:02 +08:00
|
|
|
SIM_AC_OPTION_DEBUG
|
sim: overhaul & unify endian settings management
The m4 macro has 2 args: the "wire" settings (which represents the
hardwired port behavior), and the default settings (which are used
if nothing else is specified). If none are specified, the arch is
expected to support both, and the value will be probed based on the
user runtime options or the input program.
Only two arches today set the default value (bpf & mips). We can
probably let this go as it only shows up in one scenario: the sim
is invoked, but with no inputs, and no user endian selection. This
means bpf will not behave like the other arches: an error is shown
and forces the user to make a choice. If an input program is used
though, we'll still switch the default to that. This allows us to
remove the WITH_DEFAULT_TARGET_BYTE_ORDER setting.
For the ports that set a "wire" endian, move it to the runtime init
of the respective sim_open calls. This allows us to change the
WITH_TARGET_BYTE_ORDER to purely a user-selected configure setting
if they want to force a specific endianness.
With all the endian logic moved to runtime selection, we can move
the configure call up to the common dir so we only process it once
across all ports.
The ppc arch was picking the wire endian based on the target used,
but since we weren't doing that for other biendian arches, we can
let this go too. We'll rely on the input selecting the endian, or
make the user decide.
2021-06-16 07:51:52 +08:00
|
|
|
SIM_AC_OPTION_ENDIAN
|
2021-06-07 08:11:02 +08:00
|
|
|
SIM_AC_OPTION_ENVIRONMENT
|
2021-06-20 08:06:12 +08:00
|
|
|
SIM_AC_OPTION_HARDWARE
|
2021-06-16 10:45:07 +08:00
|
|
|
SIM_AC_OPTION_INLINE
|
2021-06-07 08:35:02 +08:00
|
|
|
SIM_AC_OPTION_PROFILE
|
2021-07-01 13:04:48 +08:00
|
|
|
SIM_AC_OPTION_RESERVED_BITS
|
2021-06-29 10:39:16 +08:00
|
|
|
SIM_AC_OPTION_SCACHE
|
2021-06-07 08:35:02 +08:00
|
|
|
SIM_AC_OPTION_STDIO
|
|
|
|
SIM_AC_OPTION_TRACE
|
2021-06-18 13:14:39 +08:00
|
|
|
SIM_AC_OPTION_WARNINGS
|
2021-06-07 06:45:05 +08:00
|
|
|
|
2022-10-06 14:43:52 +08:00
|
|
|
AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
|
|
|
|
AC_CACHE_VAL(sim_cv_decl_getopt_unistd_h,
|
|
|
|
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
|
|
|
|
sim_cv_decl_getopt_unistd_h=yes, sim_cv_decl_getopt_unistd_h=no)])
|
|
|
|
AC_MSG_RESULT($sim_cv_decl_getopt_unistd_h)
|
|
|
|
if test $sim_cv_decl_getopt_unistd_h = yes; then
|
|
|
|
AC_DEFINE([HAVE_DECL_GETOPT], 1,
|
|
|
|
[Is the prototype for getopt in <unistd.h> in the expected format?])
|
|
|
|
fi
|
|
|
|
|
2021-06-20 09:33:30 +08:00
|
|
|
dnl These are unfortunate. They are conditionally called by other sim macros
|
|
|
|
dnl but always used by common/Make-common.in. So we have to subst here even
|
|
|
|
dnl when the rest of the code is in the respective macros. Once we merge the
|
|
|
|
dnl respective SIM_AC_OPTION_xxx call above, we can drop these.
|
|
|
|
AC_SUBST(sim_bitsize)
|
|
|
|
AC_SUBST(sim_float)
|
|
|
|
|
2021-06-20 13:04:34 +08:00
|
|
|
dnl Some arches have unique configure flags.
|
2021-07-01 01:01:17 +08:00
|
|
|
m4_include([frv/acinclude.m4])
|
2022-11-07 23:56:58 +08:00
|
|
|
m4_include([riscv/acinclude.m4])
|
2021-06-20 13:04:34 +08:00
|
|
|
m4_include([rx/acinclude.m4])
|
|
|
|
|
2022-10-31 20:46:44 +08:00
|
|
|
dnl Hack to output an "include" statement in the Makefile so automake doesn't
|
|
|
|
dnl try to follow it itself while processing Makefile.am.
|
|
|
|
include_makefile="include"
|
|
|
|
AC_SUBST(include_makefile)
|
|
|
|
|
2022-02-17 13:35:31 +08:00
|
|
|
AC_CONFIG_FILES([arch-subdir.mk Makefile .gdbinit:gdbinit.in])
|
2021-01-05 16:38:51 +08:00
|
|
|
AC_OUTPUT
|