diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2006-01-06 09:17:03 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2006-01-06 09:17:03 +0000 |
commit | f16a71ec65fbc427e93062f0d4288253430a9d07 (patch) | |
tree | 2e8673cab2c99b13601633cf7bd48ccb410462ed /emulators | |
parent | 82c7367324a2f45e4394636971e33d94f2a63e3b (diff) | |
download | pkgsrc-f16a71ec65fbc427e93062f0d4288253430a9d07.tar.gz |
Apply patches from Tobyas Nigren (PR pkg/32464) to make this
build on NetBSD/amd64. Thank you Tobias!
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/qemu/Makefile | 4 | ||||
-rw-r--r-- | emulators/qemu/distinfo | 4 | ||||
-rw-r--r-- | emulators/qemu/patches/patch-ax | 24 | ||||
-rw-r--r-- | emulators/qemu/patches/patch-ay | 16 |
4 files changed, 45 insertions, 3 deletions
diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile index 65edc815865..cd39a218442 100644 --- a/emulators/qemu/Makefile +++ b/emulators/qemu/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2006/01/01 13:48:45 xtraeme Exp $ +# $NetBSD: Makefile,v 1.25 2006/01/06 09:17:03 xtraeme Exp $ # DISTNAME= qemu-0.8.0 @@ -32,7 +32,7 @@ SUBST_MESSAGE.smbd= "Fixing hardcoded paths." # Remove -march/-mcpu from CFLAGS, otherwise it will fail # to build in the SSE code. -BUILDLINK_TRANSFORM+= rm-optarg:-march rm-optarg:-mcpu +#BUILDLINK_TRANSFORM+= rm-optarg:-march rm-optarg:-mcpu .include "../../mk/compiler.mk" diff --git a/emulators/qemu/distinfo b/emulators/qemu/distinfo index 161e615c7a5..b98b58e67e3 100644 --- a/emulators/qemu/distinfo +++ b/emulators/qemu/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.18 2006/01/02 12:19:52 blymn Exp $ +$NetBSD: distinfo,v 1.19 2006/01/06 09:17:03 xtraeme Exp $ SHA1 (qemu-0.8.0.tar.gz) = f7bcf2f0eee9e5207cba265f3c47ae781244628e RMD160 (qemu-0.8.0.tar.gz) = 3fc6da938f75364d0805ca0ecf8cb84a4b546dc7 @@ -20,3 +20,5 @@ SHA1 (patch-as) = 0df64b325b758a88fe61590e129bab2b3f99ce63 SHA1 (patch-au) = aa2712c382a67beef9225e710e7735ba15995a41 SHA1 (patch-av) = bd88088f41b6b3c256eec933e5f267fc432e58fa SHA1 (patch-aw) = 6299964fb3a747e8f5dfe4354e66722030ee9a75 +SHA1 (patch-ax) = 66b060005ecbf9fd0451f7960e81eccbabf959ca +SHA1 (patch-ay) = b1a2c96012cc24c3818f1c494eadbbd9968ea085 diff --git a/emulators/qemu/patches/patch-ax b/emulators/qemu/patches/patch-ax new file mode 100644 index 00000000000..37a30212fae --- /dev/null +++ b/emulators/qemu/patches/patch-ax @@ -0,0 +1,24 @@ +$NetBSD: patch-ax,v 1.3 2006/01/06 09:17:03 xtraeme Exp $ + +--- target-i386/op.c.orig 2006-01-06 05:10:30.000000000 +0100 ++++ target-i386/op.c +@@ -2099,14 +2099,17 @@ void OPPROTO op_fdivr_STN_ST0(void) + } + + /* misc FPU operations */ ++ ++void fchs_dummy() {ST0 = floatx_chs(ST0);} + void OPPROTO op_fchs_ST0(void) + { +- ST0 = floatx_chs(ST0); ++ fchs_dummy(); + } + ++void fabs_dummy() {ST0 = floatx_abs(ST0);} + void OPPROTO op_fabs_ST0(void) + { +- ST0 = floatx_abs(ST0); ++ fabs_dummy(); + } + + void OPPROTO op_fxam_ST0(void) diff --git a/emulators/qemu/patches/patch-ay b/emulators/qemu/patches/patch-ay new file mode 100644 index 00000000000..25355129e80 --- /dev/null +++ b/emulators/qemu/patches/patch-ay @@ -0,0 +1,16 @@ +$NetBSD: patch-ay,v 1.3 2006/01/06 09:17:03 xtraeme Exp $ + +--- target-sparc/op.c.orig 2005-12-19 23:51:53.000000000 +0100 ++++ target-sparc/op.c +@@ -1299,9 +1299,10 @@ void OPPROTO op_flush_T0(void) + helper_flush(T0); + } + ++void fnegs_dummy() {FT0 = -FT1;} + void OPPROTO op_fnegs(void) + { +- FT0 = -FT1; ++ fnegs_dummy(); + } + + void OPPROTO op_fabss(void) |