Skip to content

Commit

Permalink
sim:
Browse files Browse the repository at this point in the history
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* cris/configure: Regenerate.

sim/common:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* aclocal.m4: Include ../../config/acx.m4.
	* common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
	* configure, config.in: Regenerate.
	* Make-common.in (LIB_OBJS): Add version.o.
	(version.c, version.o): New rules.
	* run.c: Include version.h.
	(usage): Add help parameter. Print output either to stdout or
	stderr depending on that parameter.
	(print_version): New.
	(main): Check for --help and --version.
	* run-sim.h (sim_target_display_usage): Add help parameter.
	* version.h: New.

sim/arm:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.
	* wrapper.c (sim_target_display_usage): Add help parameter.

sim/cr16:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.

sim/d10v:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.

sim/erc32:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.

sim/frv:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.

sim/h8300:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.

sim/iq2000:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.

sim/m32c:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.

sim/m32r:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.

sim/m68hc11:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.

sim/mcore:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.

sim/mips:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.

sim/mn10300:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.

sim/ppc:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
	* configure, config.in: Regenerated.
	* Makefile.in (LIB_OBJ): Add version.o.
	(version.c, version.o): New rules.
	* psim.c (psim_usage): Add help parameter.  Print the bug URL.
	Exit with code 0 for help.
	(psim_options): Update calls to psim_usage.  Handle --help and
	--version.
	* psim.h (psim_usage): Update prototype.
	* main.c (main): Update psim_usage call.

sim/sh:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.

sim/sh64:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.

sim/v850:
2008-06-06  Vladimir Prus  <[email protected]>
            Daniel Jacobowitz  <[email protected]>
            Joseph Myers  <[email protected]>

	* configure: Regenerate.
  • Loading branch information
jsm28 committed Jun 7, 2008
1 parent bf37b8e commit 6efef46
Show file tree
Hide file tree
Showing 52 changed files with 3,348 additions and 52 deletions.
6 changes: 6 additions & 0 deletions sim/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2008-06-06 Vladimir Prus <[email protected]>
Daniel Jacobowitz <[email protected]>
Joseph Myers <[email protected]>

* cris/configure: Regenerate.

2008-05-09 Olivier Hainque <[email protected]>

* ppc/altivec.igen (vperm): Latch inputs into temporaries.
Expand Down
7 changes: 7 additions & 0 deletions sim/arm/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2008-06-06 Vladimir Prus <[email protected]>
Daniel Jacobowitz <[email protected]>
Joseph Myers <[email protected]>

* configure: Regenerate.
* wrapper.c (sim_target_display_usage): Add help parameter.

2007-02-27 Mark Mitchell <[email protected]>

* armos.c (SWIflen): Do not treate file descriptor zero as
Expand Down
174 changes: 173 additions & 1 deletion sim/arm/configure
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ ac_includes_default="\
# include <unistd.h>
#endif"

ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile COPRO cgen_breaks LIBOBJS LTLIBOBJS'
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI COPRO cgen_breaks LIBOBJS LTLIBOBJS'
ac_subst_files=''

# Initialize some variables set by options.
Expand Down Expand Up @@ -858,6 +858,12 @@ Optional Features:
--enable-sim-trace=opts Enable tracing flags
--enable-sim-profile=opts Enable profiling flags
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-pkgversion=PKG Use PKG in the version string in place of "GDB"
--with-bugurl=URL Direct users to URL to report a bug
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
Expand Down Expand Up @@ -1424,6 +1430,110 @@ sim_inline="-DDEFAULT_INLINE=0"
# the necessary substitutions and definitions for this directory.
# Autoconf M4 include file defining utility macros for complex Canadian
# cross builds.
####
# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
# or AC_INIT.
# These demand that AC_CANONICAL_SYSTEM be called beforehand.
####
# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
####
# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
# Backported from Autoconf 2.5x; can go away when and if
# we switch. Put the OS path separator in $PATH_SEPARATOR.
# ACX_HAVE_GCC_FOR_TARGET
# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
# Searching for installed target binutils. We need to take extra care,
# else we may find the wrong assembler, linker, etc., and lose.
#
# First try --with-build-time-tools, if specified.
#
# For build != host, we ask the installed GCC for the name of the tool it
# uses, and accept it if it is an absolute path. This is because the
# only good choice for a compiler is the same GCC version that is being
# installed (or we couldn't make target libraries), and we assume that
# on the host system we'll have not only the same GCC version, but also
# the same binutils version.
#
# For build == host, search the same directories that the installed
# compiler will search. We used to do this for the assembler, linker,
# and nm only; for simplicity of configuration, however, we extend this
# criterion to tools (such as ar and ranlib) that are never invoked by
# the compiler, to avoid mismatches.
#
# Also note we have to check MD_EXEC_PREFIX before checking the user's path
# if build == target. This makes the most sense only when bootstrapping,
# but we also do so when build != host. In this case, we hope that the
# build and host systems will have similar contents of MD_EXEC_PREFIX.
#
# If we do not find a suitable binary, then try the user's path.
###
# AC_PROG_CPP_WERROR
# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
# triggers warnings from the preprocessor. Will be in autoconf 2.58.
# For now, using this also overrides header checks to use only the
# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
# bit harder from here).
# Eventually autoconf will default to checking headers with the compiler
# instead, and we'll have to do this differently.
# AC_PROG_CPP_WERROR
# Test for GNAT.
# We require the gnatbind program, and a compiler driver that
# understands Ada. We use the user's CC setting, already found,
# and possibly add $1 to the command-line parameters.
#
# Sets the shell variable have_gnat to yes or no as appropriate, and
# substitutes GNATBIND and GNATMAKE.
Expand Down Expand Up @@ -4251,6 +4361,65 @@ else
fi;
# Check whether --with-pkgversion or --without-pkgversion was given.
if test "${with_pkgversion+set}" = set; then
withval="$with_pkgversion"
case "$withval" in
yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
echo "$as_me: error: package version not specified" >&2;}
{ (exit 1); exit 1; }; } ;;
no) PKGVERSION= ;;
*) PKGVERSION="($withval) " ;;
esac
else
PKGVERSION="(GDB) "
fi;
# Check whether --with-bugurl or --without-bugurl was given.
if test "${with_bugurl+set}" = set; then
withval="$with_bugurl"
case "$withval" in
yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
echo "$as_me: error: bug URL not specified" >&2;}
{ (exit 1); exit 1; }; } ;;
no) BUGURL=
;;
*) BUGURL="$withval"
;;
esac
else
BUGURL="http://www.gnu.org/software/gdb/bugs/"
fi;
case ${BUGURL} in
"")
REPORT_BUGS_TO=
REPORT_BUGS_TEXI=
;;
*)
REPORT_BUGS_TO="<$BUGURL>"
REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
;;
esac;
cat >>confdefs.h <<_ACEOF
#define PKGVERSION "$PKGVERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
_ACEOF
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
Expand Down Expand Up @@ -5216,6 +5385,9 @@ s,@sim_debug@,$sim_debug,;t t
s,@sim_stdio@,$sim_stdio,;t t
s,@sim_trace@,$sim_trace,;t t
s,@sim_profile@,$sim_profile,;t t
s,@PKGVERSION@,$PKGVERSION,;t t
s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
s,@COPRO@,$COPRO,;t t
s,@cgen_breaks@,$cgen_breaks,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
Expand Down
7 changes: 5 additions & 2 deletions sim/arm/wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,9 +772,12 @@ sim_target_parse_arg_array (argv)
}

void
sim_target_display_usage ()
sim_target_display_usage (help)
int help;
{
fprintf (stderr, "%s=<list> Comma seperated list of SWI protocols to supoport.\n\
FILE *stream = help ? stdout : stderr;

fprintf (stream, "%s=<list> Comma seperated list of SWI protocols to supoport.\n\
This list can contain: NONE, DEMON, ANGEL, REDBOOT and/or ALL.\n",
SWI_SWITCH);
}
Expand Down
17 changes: 17 additions & 0 deletions sim/common/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
2008-06-06 Vladimir Prus <[email protected]>
Daniel Jacobowitz <[email protected]>
Joseph Myers <[email protected]>

* aclocal.m4: Include ../../config/acx.m4.
* common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
* configure, config.in: Regenerate.
* Make-common.in (LIB_OBJS): Add version.o.
(version.c, version.o): New rules.
* run.c: Include version.h.
(usage): Add help parameter. Print output either to stdout or
stderr depending on that parameter.
(print_version): New.
(main): Check for --help and --version.
* run-sim.h (sim_target_display_usage): Add help parameter.
* version.h: New.

2008-04-14 Hans Kester <[email protected]>

* sim-signal.c: Define missing signals for _WIN32.
Expand Down
10 changes: 9 additions & 1 deletion sim/common/Make-common.in
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ LIBDEPS = $(BFD_LIB) $(OPCODES_LIB) $(LIBINTL_DEP) $(LIBIBERTY_LIB) \
EXTRA_LIBS = $(BFD_LIB) $(OPCODES_LIB) $(LIBINTL) $(LIBIBERTY_LIB) \
$(CONFIG_LIBS) $(SIM_EXTRA_LIBS)

LIB_OBJS = callback.o syscall.o targ-map.o $(SIM_OBJS)
LIB_OBJS = callback.o syscall.o targ-map.o version.o $(SIM_OBJS)

RUNTESTFLAGS =

Expand Down Expand Up @@ -291,6 +291,14 @@ stamp-tvals: gentmap
$(SHELL) $(srcroot)/move-if-change tmp-tmap.c targ-map.c
touch stamp-tvals

version.c: Makefile ../../gdb/version.in
rm -f version.c-tmp version.c
echo '#include "version.h"' >> version.c-tmp
echo 'const char version[] = "'"`sed q ${srcdir}/../../gdb/version.in`"'";' >> version.c-tmp
mv version.c-tmp version.c
version.o: version.c $(version_h)


#
# Rules for building sim-* components. Triggered by listing the corresponding
# .o file in the list of simulator targets.
Expand Down
1 change: 1 addition & 0 deletions sim/common/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ AC_OUTPUT
])

sinclude(../../config/gettext-sister.m4)
sinclude(../../config/acx.m4)

dnl --enable-cgen-maint support
AC_DEFUN(SIM_AC_OPTION_CGEN_MAINT,
Expand Down
4 changes: 4 additions & 0 deletions sim/common/common.m4
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
fi],[sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"])dnl
AC_SUBST(sim_profile)

ACX_PKGVERSION([GDB])
ACX_BUGURL([http://www.gnu.org/software/gdb/bugs/])
AC_DEFINE_UNQUOTED([PKGVERSION], ["$PKGVERSION"], [Additional package description])
AC_DEFINE_UNQUOTED([REPORT_BUGS_TO], ["$REPORT_BUGS_TO"], [Bug reporting address])

dnl Types used by common code
AC_TYPE_SIGNAL
Expand Down
6 changes: 6 additions & 0 deletions sim/common/config.in
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@
/* Define to the version of this package. */
#undef PACKAGE_VERSION

/* Additional package description */
#undef PKGVERSION

/* Bug reporting address */
#undef REPORT_BUGS_TO

/* Define as the return type of signal handlers (`int' or `void'). */
#undef RETSIGTYPE

Expand Down
Loading

0 comments on commit 6efef46

Please sign in to comment.