]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/riscv/configure.ac
sim: overhaul alignment settings management
[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)
760b3e8b 3AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
b9249c46
MF
4
5SIM_AC_COMMON
6
7SIM_AC_OPTION_ENDIAN(LITTLE)
b9249c46
MF
8SIM_AC_OPTION_WARNINGS
9
10# Select the default model for the target.
11riscv_model=
12case "${target}" in
13riscv32*) riscv_model="RV32G" ;;
14riscv*) riscv_model="RV64G" ;;
15esac
16SIM_AC_OPTION_DEFAULT_MODEL(${riscv_model})
17
18# Select the bitsize of the target.
19riscv_addr_bitsize=
20case "${target}" in
21riscv32*) riscv_addr_bitsize=32 ;;
22riscv*) riscv_addr_bitsize=64 ;;
23esac
24SIM_AC_OPTION_BITSIZE($riscv_addr_bitsize)
25
26SIM_AC_OUTPUT