aboutsummaryrefslogtreecommitdiff
path: root/sim/d10v
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1996-10-17 16:47:51 +0000
committerMichael Meissner <gnu@the-meissners.org>1996-10-17 16:47:51 +0000
commit55116079e2a539d3fe36b7ab8f5ab4932acb74c0 (patch)
treeb13305fe7dd6d7535d94394615e5ea23b4595021 /sim/d10v
parentd27d34c382dca49e855531693060967a26cd9bb7 (diff)
downloadgdb-55116079e2a539d3fe36b7ab8f5ab4932acb74c0.zip
gdb-55116079e2a539d3fe36b7ab8f5ab4932acb74c0.tar.gz
gdb-55116079e2a539d3fe36b7ab8f5ab4932acb74c0.tar.bz2
Make simulated loads/stores faster on x86, AIX, and big endian hosts
Diffstat (limited to 'sim/d10v')
-rw-r--r--sim/d10v/ChangeLog12
-rw-r--r--sim/d10v/configure.in12
2 files changed, 24 insertions, 0 deletions
diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog
index fe621e3..95b2690 100644
--- a/sim/d10v/ChangeLog
+++ b/sim/d10v/ChangeLog
@@ -1,3 +1,15 @@
+Thu Oct 17 12:24:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
+
+ * endian.c: Optimize simulated loads/stores on x86, AIX, and big
+ endian hosts.
+
+ * configure.in (--enable-sim-bswap): New switch to enable using
+ the BSWAP instruction on x86's.
+ * configure: Regenerate.
+
+ * Makefile.in ({SWAP,CONFIG}_CFLAGS): Add --enable-sim-bswap
+ support.
+
Wed Oct 16 13:50:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* endian.c: New file. Move endian functions here from interp.c.
diff --git a/sim/d10v/configure.in b/sim/d10v/configure.in
index cc9c4ad..d260088 100644
--- a/sim/d10v/configure.in
+++ b/sim/d10v/configure.in
@@ -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