1 dnl Process this file with autoconf to produce a configure script.
2 sinclude(../common/aclocal.m4)
8 dnl Options available in this module
9 SIM_AC_OPTION_INLINE(0)
10 SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT)
11 SIM_AC_OPTION_HOSTENDIAN
12 SIM_AC_OPTION_WARNINGS
15 # Ensure a reasonable default simulator is constructed:
18 mipstx19*-*-*) SIMCONF="-mips1 -mcpu=r1900 -mno-fp --warnings";;
20 # start-sanitize-r5900
21 mips64r59*-*-*) SIMCONF="-mips3 --warnings -mcpu=r5900";;
23 mips64*-*-*) SIMCONF="-mips0 --warnings";;
24 mips16*-*-*) SIMCONF="-mips0 --warnings";;
25 mips*-*-*) SIMCONF="-mips2 --warnings";;
26 *) SIMCONF="-mips0 --warnings";;
32 mipstx19*-*-*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
36 AC_SUBST(SIM_SUBTARGET)
40 # Select the byte order of the target
44 mipstx19*-*-*) mips_endian=0 ;;
46 # start-sanitize-r5900
47 mips64r59*-*-*) mips_endian=LITTLE_ENDIAN ;;
49 mips64*-*-*) mips_endian=0 ;;
50 mips16*-*-*) mips_endian=0 ;;
51 mips*-*-*) mips_endian=0 ;;
54 SIM_AC_OPTION_ENDIAN($mips_endian)
58 # Select the bitsize of the target
62 mipstx19*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
64 # start-sanitize-r5900
65 mips64r59*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
67 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
68 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
69 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
70 *) mips_bitsize=64 ; mips_msb=63 ;;
72 SIM_AC_OPTION_BITSIZE($mips_bitsize,$mips_msb)
76 # Select the floating hardware support of the target
78 mips_fpu=HARDWARE_FLOATING_POINT
81 mipstx19*-*-*) mips_fpu=SOFT_FLOATING_POINT ;;
83 # start-sanitize-r5900
84 mips64r59*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
86 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
87 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
88 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
89 *) mips_fpu=HARD_FLOATING_POINT ;;
91 SIM_AC_OPTION_FLOAT($mips_fpu)
94 AC_CHECK_HEADERS(string.h strings.h stdlib.h stdlib.h)
96 AC_CHECK_FUNCS(aint anint sqrt)