]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/riscv/configure.ac
3d678acb47beeb5680014c128960e9d40f296da8
[thirdparty/binutils-gdb.git] / sim / riscv / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(Makefile.in)
3 AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
4
5 SIM_AC_COMMON
6
7 SIM_AC_OPTION_ENDIAN(LITTLE)
8 SIM_AC_OPTION_WARNINGS
9
10 # Select the default model for the target.
11 riscv_model=
12 case "${target}" in
13 riscv32*) riscv_model="RV32G" ;;
14 riscv*) riscv_model="RV64G" ;;
15 esac
16 SIM_AC_OPTION_DEFAULT_MODEL(${riscv_model})
17
18 # Select the bitsize of the target.
19 riscv_addr_bitsize=
20 case "${target}" in
21 riscv32*) riscv_addr_bitsize=32 ;;
22 riscv*) riscv_addr_bitsize=64 ;;
23 esac
24 SIM_AC_OPTION_BITSIZE($riscv_addr_bitsize)
25
26 SIM_AC_OUTPUT