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