9b27cf7bbb
1998-12-29 Frank Ch. Eigler <fche@cygnus.com> * Makefile.in (WITH_COMMON_OBJS): Build also dv-sockser.o. * interp.c (sim_open): Add stub mn103002 cache control memory regions. Set OPERATING_ENVIRONMENT on "stdeval1" board. (mn10300_core_signal): New function to intercept memory errors. (program_interrupt): New function to dispatch to exception vector (mn10300_exception_*): New functions to snapshot pre/post exception state. * sim-main.h (SIM_CORE_SIGNAL): Define hook - call mn10300_core_signal. (SIM_ENGINE_HALT_HOOK): Do nothing. (SIM_CPU_EXCEPTION*): Define hooks to call mn10300_cpu_exception*(). (_sim_cpu): Add exc_* fields to store register value snapshots. * dv-mn103ser.c (*): Support dv-sockser backend for UART I/O. Various endianness and warning fixes. * mn10300.igen (illegal): Call program_interrupt on error. (break): Call program_interrupt on breakpoint Several changes from <janczyn@cygnus.com> and <cagney@cygnus.com> merged in: * dv-mn103int.c (mn103int_ioctl): New function for NMI generation. (mn103int_finish): Install it as ioctl handler. * dv-mn103tim.c: Support timer 6 specially. Endianness fixes.
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
dnl Process this file with autoconf to produce a configure script.
|
|
sinclude(../common/aclocal.m4)
|
|
dnl 2.12 botches SHELL substitution
|
|
AC_PREREQ(2.12.1)dnl
|
|
AC_INIT(Makefile.in)
|
|
|
|
SIM_AC_COMMON
|
|
|
|
SIM_AC_OPTION_ENDIAN(LITTLE_ENDIAN)
|
|
SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT)
|
|
SIM_AC_OPTION_HOSTENDIAN
|
|
SIM_AC_OPTION_WARNINGS
|
|
SIM_AC_OPTION_RESERVED_BITS
|
|
SIM_AC_OPTION_BITSIZE(32,31)
|
|
SIM_AC_OPTION_INLINE()
|
|
SIM_AC_OPTION_HARDWARE(yes,,mn103cpu mn103int mn103tim mn103ser mn103iop)
|
|
|
|
AC_CHECK_FUNCS(time chmod utime fork execve execv chown)
|
|
AC_CHECK_HEADERS(unistd.h stdlib.h string.h strings.h utime.h time.h)
|
|
|
|
#
|
|
# Enable common
|
|
#
|
|
AC_ARG_ENABLE(sim-common,
|
|
[ --enable-sim-common Enable common simulator],
|
|
[case "${enableval}" in
|
|
yes) sim_gen="-DWITH_COMMON=1"; mn10300_common="WITH";;
|
|
no) sim_gen="-DWITH_COMMON=0"; mn10300_common="WITHOUT";;
|
|
*) AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-common"); sim_gen="";;
|
|
esac
|
|
if test x"$silent" != x"yes" && test x"$sim_gen" != x""; then
|
|
echo "Setting sim_common = $sim_common" 6>&1
|
|
fi],[sim_gen="-DWITH_COMMON=1"; mn10300_common="WITH"])dnl
|
|
AC_SUBST(sim_gen)
|
|
AC_SUBST(mn10300_common)
|
|
|
|
SIM_AC_OUTPUT
|