1997-02-04 21:42:27 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
sinclude(../common/aclocal.m4)
|
1996-06-26 03:26:09 +00:00
|
|
|
AC_PREREQ(2.5)dnl
|
1995-11-08 15:44:38 +00:00
|
|
|
AC_INIT(Makefile.in)
|
|
|
|
|
1996-11-20 10:00:42 +00:00
|
|
|
SIM_AC_COMMON
|
1995-11-08 15:44:38 +00:00
|
|
|
|
1997-05-21 06:54:13 +00:00
|
|
|
dnl Options available in this module
|
|
|
|
SIM_AC_OPTION_INLINE(0)
|
1997-07-11 03:07:29 +00:00
|
|
|
SIM_AC_OPTION_ENDIAN(0)
|
1997-09-22 09:40:57 +00:00
|
|
|
SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT)
|
1997-05-21 06:54:13 +00:00
|
|
|
SIM_AC_OPTION_HOSTENDIAN
|
|
|
|
SIM_AC_OPTION_WARNINGS
|
|
|
|
|
|
|
|
|
1996-06-05 08:16:16 +00:00
|
|
|
# Ensure a reasonable default simulator is constructed:
|
|
|
|
case "${target}" in
|
1997-09-07 20:33:22 +00:00
|
|
|
# start-sanitize-tx19
|
|
|
|
mipstx19*-*-*) SIMCONF="-mips1 -mcpu=r1900 -mno-fp --warnings";;
|
|
|
|
# end-sanitize-tx19
|
1997-02-11 13:26:34 +00:00
|
|
|
# start-sanitize-r5900
|
|
|
|
mips64vr59*-*-*) SIMCONF="-mips3 --warnings -mcpu=r5900";;
|
|
|
|
# end-sanitize-r5900
|
1996-06-05 08:16:16 +00:00
|
|
|
mips64*-*-*) SIMCONF="-mips0 --warnings";;
|
Add support for mips16 (16 bit MIPS implementation):
* gencode.c (inst_type): Add mips16 instruction encoding types.
(GETDATASIZEINSN): Define.
(MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add
jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and
mtlo.
(MIPS16_DECODE): New table, for mips16 instructions.
(bitmap_val): New static function.
(struct mips16_op): Define.
(mips16_op_table): New table, for mips16 operands.
(build_mips16_operands): New static function.
(process_instructions): If PC is odd, decode a mips16
instruction. Break out instruction handling into new
build_instruction function.
(build_instruction): New static function, broken out of
process_instructions. Check modifiers rather than flags for SHIFT
bit count and m[ft]{hi,lo} direction.
(usage): Pass program name to fprintf.
(main): Remove unused variable this_option_optind. Change
``*loptarg++'' to ``loptarg++''.
(my_strtoul): Parenthesize && within ||.
* interp.c (sim_trace): If tracefh is NULL, set it to stderr.
(LoadMemory): Accept a halfword pAddr if vAddr is odd.
(simulate): If PC is odd, fetch a 16 bit instruction, and
increment PC by 2 rather than 4.
* configure.in: Add case for mips16*-*-*.
* configure: Rebuild.
1996-11-26 18:12:44 +00:00
|
|
|
mips16*-*-*) SIMCONF="-mips0 --warnings";;
|
1996-06-05 08:16:16 +00:00
|
|
|
mips*-*-*) SIMCONF="-mips2 --warnings";;
|
|
|
|
*) SIMCONF="-mips0 --warnings";;
|
|
|
|
esac
|
1996-11-20 10:00:42 +00:00
|
|
|
AC_SUBST(SIMCONF)
|
1995-11-08 15:44:38 +00:00
|
|
|
|
1997-09-20 18:22:22 +00:00
|
|
|
case "${target}" in
|
|
|
|
# start-sanitize-tx19
|
|
|
|
mipstx19*-*-*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
|
|
|
|
# end-sanitize-tx19
|
|
|
|
*) SIM_SUBTARGET="";;
|
|
|
|
esac
|
|
|
|
AC_SUBST(SIM_SUBTARGET)
|
|
|
|
|
1997-05-21 06:54:13 +00:00
|
|
|
AC_CHECK_HEADERS(string.h strings.h stdlib.h stdlib.h)
|
1996-06-03 15:58:45 +00:00
|
|
|
AC_CHECK_LIB(m, fabs)
|
1996-09-26 10:39:34 +00:00
|
|
|
AC_CHECK_FUNCS(aint anint sqrt)
|
1996-06-03 15:58:45 +00:00
|
|
|
|
1996-11-20 10:00:42 +00:00
|
|
|
SIM_AC_OUTPUT
|