summaryrefslogtreecommitdiff
path: root/emulators/pearpc/patches
diff options
context:
space:
mode:
authorghen <ghen>2005-12-22 19:27:36 +0000
committerghen <ghen>2005-12-22 19:27:36 +0000
commita6706254609337752f10350715976ec72d4da4e4 (patch)
treef8564fd1119092e2eb0d9dc9e92e99b141e67f71 /emulators/pearpc/patches
parentbe72cd78be3903b16d5b98eb556ddd3ffbc7ab50 (diff)
downloadpkgsrc-a6706254609337752f10350715976ec72d4da4e4.tar.gz
- update pearpc to 0.4
- move options to options.mk file and reorganize a bit - sort PLIST - grab MAINTAINERship ok by xtraeme. ChangeLog for pearpc-0.4: - CPU: stfiwx implemented - config: "ppc_start_fullscreen" for starting in fullscreen mode - POSIX: allow bridging of tun device - use FISTTP instruction on SSE3 aware processors - merged native_cd branch from Alexander Stockinger - endianess fixes - warn that the generic CPU is slow - better detection of HFS+ volumes - support for DVD-Drives - correctly check for NASM - Work-around for graphic errors in Mac OS X 10.1 - POSIX/Linux: fall back to 1 GHz if /proc/cpuinfo doesn't provide cpu frequency - 3c90x emulation fixed - some PROM fixed for yaboot - alteration of x86asm interface to be more programmer friendly - use transparent cursors instead of altering cursor visibility (hack for using PearPC with remote desktop) - DVD emulation implemented. Fixes problems with Tiger installation - Updated the read_effective_* commands to be faster !!! REGRESSED !!! - fixed lvalue casts (compiles now with gcc 4.x) - booting from disks with bootfile about 4 GiB limit fixed
Diffstat (limited to 'emulators/pearpc/patches')
-rw-r--r--emulators/pearpc/patches/patch-aa12
-rw-r--r--emulators/pearpc/patches/patch-ab31
-rw-r--r--emulators/pearpc/patches/patch-ac31
-rw-r--r--emulators/pearpc/patches/patch-ad12
4 files changed, 80 insertions, 6 deletions
diff --git a/emulators/pearpc/patches/patch-aa b/emulators/pearpc/patches/patch-aa
index ceacebdf044..815cdd2b968 100644
--- a/emulators/pearpc/patches/patch-aa
+++ b/emulators/pearpc/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.1 2004/09/30 22:59:47 xtraeme Exp $
+$NetBSD: patch-aa,v 1.2 2005/12/22 19:27:36 ghen Exp $
---- src/system/osapi/posix/systimer.cc.orig 2004-10-01 00:35:34.000000000 +0200
-+++ src/system/osapi/posix/systimer.cc 2004-10-01 00:37:26.000000000 +0200
+--- src/system/osapi/posix/systimer.cc.orig 2005-12-21 14:43:21.000000000 +0100
++++ src/system/osapi/posix/systimer.cc
@@ -31,7 +31,11 @@
static const int kTimerSignal = SYSTIMER_SIGNAL;
#ifdef USE_POSIX_REALTIME_CLOCK
@@ -12,9 +12,9 @@ $NetBSD: patch-aa,v 1.1 2004/09/30 22:59:47 xtraeme Exp $
static const int kClockRT = CLOCK_PROCESS_CPUTIME_ID;
+# endif
static const int kClock = CLOCK_REALTIME;
- #else
- # ifdef USE_POSIX_SETITIMER
-@@ -70,7 +74,11 @@
+ #elif USE_POSIX_SETITIMER
+ static void signal_handler(int signo);
+@@ -70,7 +74,11 @@ struct sys_timer_struct
#ifdef USE_POSIX_REALTIME_CLOCK
static void signal_handler(int signo, siginfo_t *extra, void *junk)
{
diff --git a/emulators/pearpc/patches/patch-ab b/emulators/pearpc/patches/patch-ab
new file mode 100644
index 00000000000..430de336463
--- /dev/null
+++ b/emulators/pearpc/patches/patch-ab
@@ -0,0 +1,31 @@
+$NetBSD: patch-ab,v 1.1 2005/12/22 19:27:36 ghen Exp $
+
+--- src/cpu/cpu_jitc_x86/ppc_vec.cc.orig 2005-12-21 15:02:51.000000000 +0100
++++ src/cpu/cpu_jitc_x86/ppc_vec.cc
+@@ -6621,7 +6621,7 @@ void ppc_opc_vrfiz()
+ PPC_OPC_ASSERT(vrA==0);
+
+ for (int i=0; i<4; i++) { //FIXME: This might not comply with Java FP
+- gCPU.vr[vrD].f[i] = truncf(gCPU.vr[vrD].f[i]);
++ gCPU.vr[vrD].f[i] = rint(gCPU.vr[vrD].f[i]);
+ }
+ }
+ JITCFlow ppc_opc_gen_vrfiz()
+@@ -6963,7 +6963,7 @@ void ppc_opc_vctsxs()
+
+ for (int i=0; i<4; i++) { //FIXME: This might not comply with Java FP
+ ftmp = gCPU.vr[vrB].f[i] * (float)(1 << uimm);
+- ftmp = truncf(ftmp);
++ ftmp = rint(ftmp);
+
+ tmp = (sint32)ftmp;
+
+@@ -7061,7 +7061,7 @@ void ppc_opc_vctuxs()
+
+ for (int i=0; i<4; i++) { //FIXME: This might not comply with Java FP
+ ftmp = gCPU.vr[vrB].f[i] * (float)(1 << uimm);
+- ftmp = truncf(ftmp);
++ ftmp = rint(ftmp);
+
+ tmp = (uint32)ftmp;
+
diff --git a/emulators/pearpc/patches/patch-ac b/emulators/pearpc/patches/patch-ac
new file mode 100644
index 00000000000..e98b337cea9
--- /dev/null
+++ b/emulators/pearpc/patches/patch-ac
@@ -0,0 +1,31 @@
+$NetBSD: patch-ac,v 1.1 2005/12/22 19:27:36 ghen Exp $
+
+--- src/cpu/cpu_generic/ppc_vec.cc.orig 2005-12-21 15:41:47.000000000 +0100
++++ src/cpu/cpu_generic/ppc_vec.cc
+@@ -2594,7 +2594,7 @@ void ppc_opc_vrfiz()
+ PPC_OPC_ASSERT(vrA==0);
+
+ for (int i=0; i<4; i++) { //FIXME: This might not comply with Java FP
+- gCPU.vr[vrD].f[i] = truncf(gCPU.vr[vrD].f[i]);
++ gCPU.vr[vrD].f[i] = rint(gCPU.vr[vrD].f[i]);
+ }
+ }
+
+@@ -2726,7 +2726,7 @@ void ppc_opc_vctsxs()
+
+ for (int i=0; i<4; i++) { //FIXME: This might not comply with Java FP
+ ftmp = gCPU.vr[vrB].f[i] * (float)(1 << uimm);
+- ftmp = truncf(ftmp);
++ ftmp = rint(ftmp);
+
+ tmp = (sint32)ftmp;
+
+@@ -2755,7 +2755,7 @@ void ppc_opc_vctuxs()
+
+ for (int i=0; i<4; i++) { //FIXME: This might not comply with Java FP
+ ftmp = gCPU.vr[vrB].f[i] * (float)(1 << uimm);
+- ftmp = truncf(ftmp);
++ ftmp = rint(ftmp);
+
+ tmp = (uint32)ftmp;
+
diff --git a/emulators/pearpc/patches/patch-ad b/emulators/pearpc/patches/patch-ad
new file mode 100644
index 00000000000..4fb5e0cd148
--- /dev/null
+++ b/emulators/pearpc/patches/patch-ad
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.1 2005/12/22 19:27:36 ghen Exp $
+
+--- src/system/osapi/posix/sysethtun.cc.orig 2005-12-21 15:01:35.000000000 +0100
++++ src/system/osapi/posix/sysethtun.cc
+@@ -33,6 +33,7 @@
+ #include <cstring>
+ #include <unistd.h>
+ #include <sys/wait.h>
++#include <sys/select.h>
+
+ #include "system/sysethtun.h"
+ #include "tools/snprintf.h"