Make simulated loads/stores faster on x86, AIX, and big endian hosts
[deliverable/binutils-gdb.git] / sim / d10v / configure.in
index cc9c4ad4951fb88973868a68f5e83b4485cce90c..d260088e18fc6dd5b99e91bcd5345a49b73db4e9 100644 (file)
@@ -42,6 +42,17 @@ if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
   echo "Setting sim debug = $sim_debug" 6>&1
 fi],[sim_cflags=""])dnl
 
+AC_ARG_ENABLE(sim-bswap,
+[  --enable-sim-bswap                  Use the BSWAP instruction on Intel 486s and Pentiums.],
+[case "${enableval}" in
+  yes) sim_bswap="-DUSE_BSWAP";;
+  no)  sim_bswap="";;
+  *)   AC_MSG_ERROR("--enable-sim-bswap does not take a value"); sim_bswap="";;
+esac
+if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
+  echo "Setting bswap flags = $sim_bswap" 6>&1
+fi],[sim_bswap=""])dnl
+
 AC_SUBST(CC_FOR_BUILD)
 AC_SUBST(CFLAGS)
 AC_SUBST(HDEFINES)
@@ -50,6 +61,7 @@ AC_SUBST(AR)
 AC_PROG_RANLIB
 AC_SUBST(sim_cflags)
 AC_SUBST(sim_debug)
+AC_SUBST(sim_bswap)
 
 # Put a plausible default for CC_FOR_BUILD in Makefile.
 AC_C_CROSS
This page took 0.023101 seconds and 4 git commands to generate.