From 95a392eddcbb70f15b8447c1c458b3406b15a614 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Fri, 27 Jan 2006 21:45:50 +0000 Subject: [PATCH] Enable VME by default for Pentium+ CPU --- bochs/configure | 14 +++++++++++++- bochs/configure.in | 8 +++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/bochs/configure b/bochs/configure index dd85a93de..88949cae9 100755 --- a/bochs/configure +++ b/bochs/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: configure.in,v 1.308 2006/01/25 22:19:57 sshwarts Exp . +# From configure.in Id: configure.in,v 1.309 2006/01/27 19:50:00 sshwarts Exp . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59. # @@ -35731,6 +35731,18 @@ _ACEOF fi +else + + if test "$bx_cpu_level" -ge 5; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + cat >>confdefs.h <<\_ACEOF +#define BX_SUPPORT_VME 1 +_ACEOF + + fi + + fi; echo "$as_me:$LINENO: checking for MMX support" >&5 diff --git a/bochs/configure.in b/bochs/configure.in index e3a702e08..01479c1b7 100644 --- a/bochs/configure.in +++ b/bochs/configure.in @@ -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.309 2006-01-27 19:50:00 sshwarts Exp $]]) +AC_REVISION([[$Id: configure.in,v 1.310 2006-01-27 21:45:50 sshwarts Exp $]]) AC_CONFIG_HEADER(config.h) AC_CONFIG_HEADER(ltdlconf.h) @@ -1493,6 +1493,12 @@ AC_ARG_ENABLE(vme, AC_DEFINE(BX_SUPPORT_VME, 0) fi ], + [ + if test "$bx_cpu_level" -ge 5; then + AC_MSG_RESULT(yes) + AC_DEFINE(BX_SUPPORT_VME, 1) + fi + ] ) AC_MSG_CHECKING(for MMX support)