6205f37913
* configure.in: Add tx49 configury. * configure: Update.
133 lines
3.5 KiB
Text
133 lines
3.5 KiB
Text
dnl Process this file with autoconf to produce a configure script.
|
|
sinclude(../common/aclocal.m4)
|
|
AC_PREREQ(2.5)dnl
|
|
AC_INIT(Makefile.in)
|
|
|
|
SIM_AC_COMMON
|
|
|
|
dnl Options available in this module
|
|
SIM_AC_OPTION_INLINE(0)
|
|
SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT)
|
|
SIM_AC_OPTION_HOSTENDIAN
|
|
SIM_AC_OPTION_WARNINGS
|
|
|
|
|
|
# Ensure a reasonable default simulator is constructed:
|
|
case "${target}" in
|
|
# start-sanitize-tx19
|
|
mipstx19*-*-*) SIMCONF="-mips1 -mcpu=r1900 -mno-fp --warnings";;
|
|
# end-sanitize-tx19
|
|
# start-sanitize-tx49
|
|
mips64tx49*-*-*) SIMCONF="-mips3 --warnings -mcpu=r4900";;
|
|
# end-sanitize-tx49
|
|
# start-sanitize-r5900
|
|
mips64r59*-*-*) SIMCONF="-mips3 --warnings -mcpu=r5900";;
|
|
# end-sanitize-r5900
|
|
mips64*-*-*) SIMCONF="-mips0 --warnings";;
|
|
mips16*-*-*) SIMCONF="-mips0 --warnings";;
|
|
mips*-*-*) SIMCONF="-mips2 --warnings";;
|
|
*) SIMCONF="-mips0 --warnings";;
|
|
esac
|
|
AC_SUBST(SIMCONF)
|
|
|
|
case "${target}" in
|
|
# start-sanitize-tx19
|
|
mipstx19*-*-*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
|
|
# end-sanitize-tx19
|
|
*) SIM_SUBTARGET="";;
|
|
esac
|
|
AC_SUBST(SIM_SUBTARGET)
|
|
|
|
|
|
#
|
|
# Select the byte order of the target
|
|
#
|
|
case "${target}" in
|
|
# start-sanitize-tx19
|
|
mipstx19*-*-*) mips_endian=0 ;;
|
|
# end-sanitize-tx19
|
|
# start-sanitize-r5900
|
|
mips64r59*-*-*) mips_endian=LITTLE_ENDIAN ;;
|
|
# end-sanitize-r5900
|
|
mips64*-*-*) mips_endian=0 ;;
|
|
mips16*-*-*) mips_endian=0 ;;
|
|
mips*-*-*) mips_endian=0 ;;
|
|
*) mips_endian=0 ;;
|
|
esac
|
|
SIM_AC_OPTION_ENDIAN($mips_endian)
|
|
|
|
|
|
#
|
|
# Select the bitsize of the target
|
|
#
|
|
case "${target}" in
|
|
# start-sanitize-tx19
|
|
mipstx19*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
|
|
# end-sanitize-tx19
|
|
# start-sanitize-r5900
|
|
mips64r59*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
|
|
# end-sanitize-r5900
|
|
mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
|
|
mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
|
|
mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
|
|
*) mips_bitsize=64 ; mips_msb=63 ;;
|
|
esac
|
|
SIM_AC_OPTION_BITSIZE($mips_bitsize,$mips_msb)
|
|
|
|
|
|
#
|
|
# Select the floating hardware support of the target
|
|
#
|
|
mips_fpu=HARDWARE_FLOATING_POINT
|
|
case "${target}" in
|
|
# start-sanitize-tx19
|
|
mipstx19*-*-*) mips_fpu=SOFT_FLOATING_POINT ;;
|
|
# end-sanitize-tx19
|
|
# start-sanitize-r5900
|
|
mips64r59*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
|
|
# end-sanitize-r5900
|
|
mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
|
|
mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
|
|
mips*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
|
|
*) mips_fpu=HARD_FLOATING_POINT ;;
|
|
esac
|
|
SIM_AC_OPTION_FLOAT($mips_fpu)
|
|
|
|
|
|
#
|
|
# Select the sim generator & architecture
|
|
#
|
|
sim_gen=NO
|
|
sim_igen_flags="-F 32,64,f -M mipsIV"
|
|
sim_m16_flags="-F 16 -M mips16"
|
|
|
|
case "${target}" in
|
|
# start-sanitize-tx19
|
|
# mipstx19*-*-*) sim_gen=M16
|
|
# sim_igen_flags="-F 32,64,f -M tx19"
|
|
# sim_m16_flags="-F 16 -M tx19"
|
|
# ;;
|
|
# end-sanitize-tx19
|
|
# start-sanitize-r5900
|
|
# mips64r59*-*-*) sim_gen=IGEN
|
|
# sim_igen_flags="-F 32,64,f -M r5900"
|
|
# ;;
|
|
# end-sanitize-r5900
|
|
# start-sanitize-vr5400
|
|
mips64vr54*-*-*) sim_gen=IGEN
|
|
sim_igen_flags="-F 32,64,f -M vr5400"
|
|
;;
|
|
# end-sanitize-vr5400
|
|
# mips16*-*-*) sim_gen=M16 ;;
|
|
*) sim_gen=NO ;;
|
|
esac
|
|
AC_SUBST(sim_gen)
|
|
AC_SUBST(sim_igen_flags)
|
|
AC_SUBST(sim_m16_flags)
|
|
|
|
|
|
AC_CHECK_HEADERS(string.h strings.h stdlib.h stdlib.h)
|
|
AC_CHECK_LIB(m, fabs)
|
|
AC_CHECK_FUNCS(aint anint sqrt)
|
|
|
|
SIM_AC_OUTPUT
|