Enable alignment check by default for cpu-level >= 4

This commit is contained in:
Stanislav Shwartsman 2007-11-23 12:47:13 +00:00
parent af9a14ff3b
commit e0a3a844ad
3 changed files with 22 additions and 6 deletions

View File

@ -38,6 +38,8 @@ Changes after 2.3.5 release:
print_timestamps: enable=1
- Added --enable-show-ips option to all configuration scripts used to
build release binaries, so all future releases will enjoy IPS display.
- Enable alignment check in the CPU and #AC exception by default for
--cpu-level >= 4 (like in real hardware)
-------------------------------------------------------------------------
Changes in 2.3.5 (September 16, 2007):

15
bochs/configure vendored
View File

@ -1,5 +1,5 @@
#! /bin/sh
# From configure.in Id: configure.in,v 1.349 2007/10/30 18:57:46 sshwarts Exp .
# From configure.in Id: configure.in,v 1.350 2007/11/18 19:53:43 sshwarts Exp .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.60.
#
@ -39281,12 +39281,21 @@ _ACEOF
else
{ echo "$as_me:$LINENO: result: no" >&5
if test "$bx_cpu_level" -gt 3; then
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
cat >>confdefs.h <<\_ACEOF
#define BX_SUPPORT_ALIGNMENT_CHECK 1
_ACEOF
else
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
cat >>confdefs.h <<\_ACEOF
cat >>confdefs.h <<\_ACEOF
#define BX_SUPPORT_ALIGNMENT_CHECK 0
_ACEOF
fi
fi

View File

@ -2,7 +2,7 @@ dnl // Process this file with autoconf to produce a configure script.
AC_PREREQ(2.50)
AC_INIT(bochs.h)
AC_REVISION([[$Id: configure.in,v 1.350 2007-11-18 19:53:43 sshwarts Exp $]])
AC_REVISION([[$Id: configure.in,v 1.351 2007-11-23 12:47:12 sshwarts Exp $]])
AC_CONFIG_HEADER(config.h)
AC_CONFIG_HEADER(ltdlconf.h)
@ -1678,8 +1678,13 @@ AC_ARG_ENABLE(alignment-check,
fi
],
[
AC_MSG_RESULT(no)
AC_DEFINE(BX_SUPPORT_ALIGNMENT_CHECK, 0)
if test "$bx_cpu_level" -gt 3; then
AC_MSG_RESULT(yes)
AC_DEFINE(BX_SUPPORT_ALIGNMENT_CHECK, 1)
else
AC_MSG_RESULT(no)
AC_DEFINE(BX_SUPPORT_ALIGNMENT_CHECK, 0)
fi
]
)