diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-07-01 01:04:48 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-07-01 20:53:00 -0400 |
commit | 7eb1f99adaa3515463b6082e4a911d8b334e852f (patch) | |
tree | 914ebe6a8f134e179355d95dd07814b01e11c020 /sim/configure | |
parent | 313c332ff2d5cb2a681149254ca73ba041aa8630 (diff) | |
download | fsf-binutils-gdb-7eb1f99adaa3515463b6082e4a911d8b334e852f.zip fsf-binutils-gdb-7eb1f99adaa3515463b6082e4a911d8b334e852f.tar.gz fsf-binutils-gdb-7eb1f99adaa3515463b6082e4a911d8b334e852f.tar.bz2 |
sim: unify reserved instruction bits settings
Move these options up to the common dir so we only test & export
them once across all ports.
The setting only affects igen based ports, and they were turning
this on by default, so keep the default in place.
Diffstat (limited to 'sim/configure')
-rwxr-xr-x | sim/configure | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/sim/configure b/sim/configure index 168da93..8dec72c 100755 --- a/sim/configure +++ b/sim/configure @@ -640,7 +640,6 @@ am__EXEEXT_TRUE LTLIBOBJS SIM_RX_CYCLE_ACCURATE_FLAGS SIM_FRV_TRAPDUMP_FLAGS -sim_reserved_bits sim_float sim_bitsize SIM_INLINE @@ -840,6 +839,7 @@ enable_sim_environment enable_sim_hardware enable_sim_inline enable_sim_profile +enable_sim_reserved_bits enable_sim_scache enable_sim_stdio enable_sim_trace @@ -1523,6 +1523,9 @@ Optional Features: Specify which functions should be inlined --enable-sim-profile=opts Enable profiling flags + --enable-sim-reserved-bits + Specify whether to check reserved bits in + instruction --enable-sim-scache=size Specify simulator execution cache size --enable-sim-stdio Specify whether to use stdio for console @@ -12179,7 +12182,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12182 "configure" +#line 12185 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12285,7 +12288,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12288 "configure" +#line 12291 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -14532,6 +14535,31 @@ _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5 $as_echo "$sim_profile" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5 +$as_echo_n "checking whether to check reserved bits in instruction... " >&6; } +# Check whether --enable-sim-reserved-bits was given. +if test "${enable_sim_reserved_bits+set}" = set; then : + enableval=$enable_sim_reserved_bits; case "${enableval}" in +yes|no) ;; +*) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;; +esac +fi + +if test "x${enable_sim_reserved_bits}" != xno; then + sim_reserved_bits=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + sim_reserved_bits=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +cat >>confdefs.h <<_ACEOF +#define WITH_RESERVED_BITS $sim_reserved_bits +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5 $as_echo_n "checking for sim cache size... " >&6; } sim_scache="16384" @@ -14710,7 +14738,6 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; } # Check whether --enable-sim-frv-trapdump was given. |