]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/riscv/configure.ac
sim: overhaul & unify endian 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
b9249c46
MF
7# Select the default model for the target.
8riscv_model=
9case "${target}" in
10riscv32*) riscv_model="RV32G" ;;
11riscv*) riscv_model="RV64G" ;;
12esac
13SIM_AC_OPTION_DEFAULT_MODEL(${riscv_model})
14
15# Select the bitsize of the target.
16riscv_addr_bitsize=
17case "${target}" in
18riscv32*) riscv_addr_bitsize=32 ;;
19riscv*) riscv_addr_bitsize=64 ;;
20esac
21SIM_AC_OPTION_BITSIZE($riscv_addr_bitsize)
22
23SIM_AC_OUTPUT