diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-11-11 15:57:55 +0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-12-21 22:27:12 -0500 |
commit | 19b11256a55c86a6871e1a10308ad7b68119a9c4 (patch) | |
tree | 8773c88b1da6f6d00af907c92be735f1d45d6aa5 /sim/configure | |
parent | 2d5700ad4e6e43d76548be5e8148c05f6948aea2 (diff) | |
download | gdb-19b11256a55c86a6871e1a10308ad7b68119a9c4.zip gdb-19b11256a55c86a6871e1a10308ad7b68119a9c4.tar.gz gdb-19b11256a55c86a6871e1a10308ad7b68119a9c4.tar.bz2 |
sim: mips: move bitsize defines to top-level configure
Since the msb value is always defined as the wordsize-1, stop
hardcoding that value directly, and use a CPP value instead.
Diffstat (limited to 'sim/configure')
-rwxr-xr-x | sim/configure | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/sim/configure b/sim/configure index bf81c83..c818c10 100755 --- a/sim/configure +++ b/sim/configure @@ -641,6 +641,7 @@ LTLIBOBJS include_makefile SIM_RX_CYCLE_ACCURATE_FLAGS SIM_RISCV_BITSIZE +SIM_MIPS_BITSIZE SIM_MIPS_SUBTARGET SIM_FRV_TRAPDUMP_FLAGS sim_float @@ -12432,7 +12433,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12435 "configure" +#line 12436 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12538,7 +12539,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12541 "configure" +#line 12542 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -16301,6 +16302,31 @@ esac $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5 +$as_echo_n "checking mips bitsize... " >&6; } +SIM_MIPS_BITSIZE=64 +case ${target} in #( + mips*-sde-elf*) : + SIM_MIPS_BITSIZE=64 ;; #( + mips*-mti-elf*) : + SIM_MIPS_BITSIZE=64 ;; #( + mips64*-*-*) : + SIM_MIPS_BITSIZE=64 ;; #( + mips16*-*-*) : + SIM_MIPS_BITSIZE=64 ;; #( + mipsisa32*-*-*) : + SIM_MIPS_BITSIZE=32 ;; #( + mipsisa64*-*-*) : + SIM_MIPS_BITSIZE=64 ;; #( + mips*-*-*) : + SIM_MIPS_BITSIZE=32 ;; #( + *) : + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5 +$as_echo "$SIM_MIPS_BITSIZE" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5 $as_echo_n "checking riscv bitsize... " >&6; } SIM_RISCV_BITSIZE=64 |