sim: punt x86-specific bswap logic

The compiler/C library should produce reasonable code for htonl/ntohl,
and at least glibc tries pretty hard to always produce good code for
them.  This logic only had support for 32-bit x86 systems anymore, and
it's unlikely people were even opting into this, so drop it all.
This commit is contained in:
Mike Frysinger
2016-01-04 04:06:01 -05:00
parent 13adda68c5
commit 9bbf6f91c6
68 changed files with 187 additions and 699 deletions

23
sim/iq2000/configure vendored
View File

@@ -612,7 +612,6 @@ sim_trace
sim_stdio
sim_debug
sim_cflags
sim_bswap
MAINT
MAINTAINER_MODE_FALSE
MAINTAINER_MODE_TRUE
@@ -755,7 +754,6 @@ enable_fast_install
with_gnu_ld
enable_libtool_lock
enable_maintainer_mode
enable_sim_bswap
enable_sim_cflags
enable_sim_debug
enable_sim_stdio
@@ -1407,7 +1405,6 @@ Optional Features:
--disable-libtool-lock avoid locking (might break parallel builds)
--enable-maintainer-mode enable make rules and dependencies not useful
(and sometimes confusing) to the casual installer
--enable-sim-bswap Use Host specific BSWAP instruction
--enable-sim-cflags=opts
Extra CFLAGS for use in building simulator
--enable-sim-debug=opts Enable debugging flags (for developers of the sim
@@ -12537,7 +12534,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 12540 "configure"
#line 12537 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12643,7 +12640,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 12646 "configure"
#line 12643 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12911,22 +12908,6 @@ fi
# Check whether --enable-sim-bswap was given.
if test "${enable_sim_bswap+set}" = set; then :
enableval=$enable_sim_bswap; case "${enableval}" in
yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
no) sim_bswap="-DWITH_BSWAP=0";;
*) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
esac
if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
echo "Setting bswap flags = $sim_bswap" 6>&1
fi
else
sim_bswap=""
fi
# Check whether --enable-sim-cflags was given.
if test "${enable_sim_cflags+set}" = set; then :
enableval=$enable_sim_cflags; case "${enableval}" in