diff options
Diffstat (limited to 'extra/bochs')
-rw-r--r-- | extra/bochs/2.4.5-fetchcode.patch | 45 | ||||
-rw-r--r-- | extra/bochs/PKGBUILD | 26 |
2 files changed, 71 insertions, 0 deletions
diff --git a/extra/bochs/2.4.5-fetchcode.patch b/extra/bochs/2.4.5-fetchcode.patch new file mode 100644 index 000000000..ef980a340 --- /dev/null +++ b/extra/bochs/2.4.5-fetchcode.patch @@ -0,0 +1,45 @@ +--- cpu/fetchdecode.cc.orig 2010-04-16 15:52:44.000000000 -0400 ++++ cpu/fetchdecode.cc 2010-10-07 13:23:06.000000000 -0400 +@@ -1,5 +1,5 @@ + ///////////////////////////////////////////////////////////////////////// +-// $Id: fetchdecode.cc,v 1.266 2010/04/16 19:52:44 sshwarts Exp $ ++// $Id: fetchdecode.cc,v 1.267 2010/04/29 21:04:23 sshwarts Exp $ + ///////////////////////////////////////////////////////////////////////// + // + // Copyright (C) 2001-2009 The Bochs Project +@@ -474,7 +474,7 @@ + /* 0F 0D /wr */ { 0, BX_IA_PREFETCHW }, // 3DNow! PREFETCH on AMD, NOP on Intel + /* 0F 0E /wr */ { 0, BX_IA_FEMMS }, // 3DNow! FEMMS + #if BX_SUPPORT_3DNOW +- /* 0F 0F /wr */ { BxImmediate_Ib, BX_IA_ERROR, Bx3DNowOpcodeInfo }, ++ /* 0F 0F /wr */ { BxImmediate_Ib, BX_IA_ERROR }, + #else + /* 0F 0F /wr */ { 0, BX_IA_ERROR }, + #endif +@@ -1025,7 +1025,7 @@ + /* 0F 0D /dr */ { 0, BX_IA_PREFETCHW }, // 3DNow! PREFETCH on AMD, NOP on Intel + /* 0F 0E /dr */ { 0, BX_IA_FEMMS }, // 3DNow! FEMMS + #if BX_SUPPORT_3DNOW +- /* 0F 0F /dr */ { BxImmediate_Ib, BX_IA_ERROR, Bx3DNowOpcodeInfo }, ++ /* 0F 0F /dr */ { BxImmediate_Ib, BX_IA_ERROR }, + #else + /* 0F 0F /dr */ { 0, BX_IA_ERROR }, + #endif +@@ -1583,7 +1583,7 @@ + /* 0F 0D /wm */ { 0, BX_IA_PREFETCHW }, // 3DNow! PREFETCH on AMD, NOP on Intel + /* 0F 0E /wm */ { 0, BX_IA_FEMMS }, // 3DNow! FEMMS + #if BX_SUPPORT_3DNOW +- /* 0F 0F /wm */ { BxImmediate_Ib, BX_IA_ERROR, Bx3DNowOpcodeInfo }, ++ /* 0F 0F /wm */ { BxImmediate_Ib, BX_IA_ERROR }, + #else + /* 0F 0F /wm */ { 0, BX_IA_ERROR }, + #endif +@@ -2134,7 +2134,7 @@ + /* 0F 0D /dm */ { 0, BX_IA_PREFETCHW }, // 3DNow! PREFETCH on AMD, NOP on Intel + /* 0F 0E /dm */ { 0, BX_IA_FEMMS }, // 3DNow! FEMMS + #if BX_SUPPORT_3DNOW +- /* 0F 0F /dm */ { BxImmediate_Ib, BX_IA_ERROR, Bx3DNowOpcodeInfo }, ++ /* 0F 0F /dm */ { BxImmediate_Ib, BX_IA_ERROR }, + #else + /* 0F 0F /dm */ { 0, BX_IA_ERROR }, + #endif diff --git a/extra/bochs/PKGBUILD b/extra/bochs/PKGBUILD new file mode 100644 index 000000000..7106ce9d9 --- /dev/null +++ b/extra/bochs/PKGBUILD @@ -0,0 +1,26 @@ +# $Id: PKGBUILD 94642 2010-10-09 04:04:21Z kevin $ +#Contributor: Tom Newsom <Jeepster@gmx.co.uk> +# Maintainer: Kevin Piche <kevin@archlinux.org> + +pkgname=bochs +pkgver=2.4.5 +pkgrel=1 +pkgdesc="A portable x86 PC emulation software package" +arch=('i686' 'x86_64') +license=('LGPL') +url="http://bochs.sourceforge.net/" +source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz +2.4.5-fetchcode.patch) +depends=('gcc-libs' 'libxpm') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + patch -Np0 -i ${srcdir}/2.4.5-fetchcode.patch + ./configure --prefix=/usr --enable-vbe --without-wx --enable-cpu-level=6 \ + --enable-fpu --enable-3dnow + make || return 1 + make prefix=${pkgdir}/usr install + install -D -m 644 .bochsrc ${pkgdir}/etc/bochsrc-sample.txt +} +sha256sums=('b948622a364c2e7da4221a6a4640ba2efa68422e1411ac377c69d37f46f67616' + '3dba808614da7d0fa1a3d6ddaceabf027a873d1f45fb90ec43b8dce876baa8ff') |