summaryrefslogtreecommitdiff
path: root/emulators/gcube/patches
diff options
context:
space:
mode:
authorjmmv <jmmv>2006-01-10 14:33:26 +0000
committerjmmv <jmmv>2006-01-10 14:33:26 +0000
commitc9a7f351a2d44922f945669a84ba7eb5360366c6 (patch)
treef4f045cd5cf25fa77b2e43e2a499f9a6c0972185 /emulators/gcube/patches
parent9d21220486b5c577a85a32efabafd50a4e144d65 (diff)
downloadpkgsrc-c9a7f351a2d44922f945669a84ba7eb5360366c6.tar.gz
Update to 0.4:
0.4 - better interrupt handling and dsp emulation - input should work in more games now - improved gx emulation (with new engine at its early stage) - savestates can be created without the debugger - simple thp video player included (thpview) 0.3 - should now work on mac os x (thanks to Adam Green) - basic hle system - function mapper - fixed a few problems with pad emulation - further debugger improvements - killed some ugly cpu bugs - fixes here and there This project is currently dead, so we might consider removing this package in the future.
Diffstat (limited to 'emulators/gcube/patches')
-rw-r--r--emulators/gcube/patches/patch-aa31
-rw-r--r--emulators/gcube/patches/patch-ab20
-rw-r--r--emulators/gcube/patches/patch-ac16
3 files changed, 47 insertions, 20 deletions
diff --git a/emulators/gcube/patches/patch-aa b/emulators/gcube/patches/patch-aa
index f0187f659aa..0e3e484ae7c 100644
--- a/emulators/gcube/patches/patch-aa
+++ b/emulators/gcube/patches/patch-aa
@@ -1,19 +1,30 @@
-$NetBSD: patch-aa,v 1.1.1.1 2004/07/16 14:25:34 xtraeme Exp $
+$NetBSD: patch-aa,v 1.2 2006/01/10 14:33:26 jmmv Exp $
---- Makefile.rules.orig 2004-07-16 14:47:19.000000000 +0200
-+++ Makefile.rules 2004-07-16 14:48:09.000000000 +0200
-@@ -1,10 +1,10 @@
-
+--- Makefile.rules.orig 2005-01-12 14:34:18.000000000 +0100
++++ Makefile.rules
+@@ -2,9 +2,9 @@
SDL_CONFIG=sdl-config
--LIBS=-lSDL -lz -l$(OPENGL)
-+LIBS=-lSDL -lz -l$(OPENGL) $(LDFLAGS)
+ LIBS=`$(SDL_CONFIG) --libs` -mno-windows -mcygwin -lz -l$(OPENGL)
--CFLAGS=-g -Wall
+-CFLAGS=-g -Wall -I/usr/include -I/usr/local/include
-PROFLAGS=-g -Wall -pg -fprofile-arcs -ftest-coverage
-OPTFLAGS=-O3 -fno-strict-aliasing -fomit-frame-pointer -ffast-math -march=$(CPU) $(OPTIMIZE)
-+#CFLAGS=-g -Wall
++#CFLAGS=-g -Wall -I/usr/include -I/usr/local/include
+#PROFLAGS=-g -Wall -pg -fprofile-arcs -ftest-coverage
-+OPTFLAGS=-fno-strict-aliasing -fomit-frame-pointer -ffast-math
++#OPTFLAGS=-O3 -fno-strict-aliasing -fomit-frame-pointer -ffast-math -march=$(CPU) $(OPTIMIZE)
OBJECTS=\
ppc_disasm.o\
+@@ -89,10 +89,10 @@ release: default
+ profiler: default
+
+ gcube: $(OBJECTS) gcube.o
+- $(CC) $(CFLAGS) $^ -o $@ $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
+
+ gcubedbg: $(OBJECTS) gcubedbg.o cpu_dbg.o
+- $(CC) $(CFLAGS) $^ -o $@ $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
+
+ bin2dol: bin2dol.c general.o
+ $(CC) $(CFLAGS) $^ -o $@
diff --git a/emulators/gcube/patches/patch-ab b/emulators/gcube/patches/patch-ab
index 68f1761a2bf..63f0273b2b0 100644
--- a/emulators/gcube/patches/patch-ab
+++ b/emulators/gcube/patches/patch-ab
@@ -1,19 +1,19 @@
-$NetBSD: patch-ab,v 1.1.1.1 2004/07/16 14:25:34 xtraeme Exp $
+$NetBSD: patch-ab,v 1.2 2006/01/10 14:33:26 jmmv Exp $
---- Makefile.orig 2004-07-16 14:57:16.000000000 +0200
-+++ Makefile 2004-07-16 14:57:30.000000000 +0200
+--- Makefile.orig 2005-01-12 03:11:22.000000000 +0100
++++ Makefile
@@ -1,8 +1,8 @@
# use assembler optimizations
--ASM_X86=1
-+#ASM_X86=1
+-ASM_X86=0
++#ASM_X86=0
# use debugger: 1 - by default, 2 - compile in but don't use by default
--GDEBUG=2
-+#GDEBUG=2
+-GDEBUG=0
++#GDEBUG=0
# by default, no window will open until fb address is set
# or video mode is specified. some programs might not reach that stage.
-@@ -18,7 +18,7 @@
+@@ -18,7 +18,7 @@ DEFAULT_BUFFER_SIZE=512
MEMHACK=0
# specify the cpu used (for -march, check gcc manual)
@@ -22,7 +22,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2004/07/16 14:25:34 xtraeme Exp $
#CPU=athlon-xp
# add here optimization flags
-@@ -28,7 +28,7 @@
+@@ -28,7 +28,7 @@ CPU=i686
OPENGL=GL
# compilator
@@ -30,4 +30,4 @@ $NetBSD: patch-ab,v 1.1.1.1 2004/07/16 14:25:34 xtraeme Exp $
+#CC=gcc
# if byteswap.h is present
- USE_BYTESWAP_H=1
+ USE_BYTESWAP_H=0
diff --git a/emulators/gcube/patches/patch-ac b/emulators/gcube/patches/patch-ac
new file mode 100644
index 00000000000..6590fdca1d4
--- /dev/null
+++ b/emulators/gcube/patches/patch-ac
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.1 2006/01/10 14:33:26 jmmv Exp $
+
+--- cpu.c.orig 2005-01-12 02:10:42.000000000 +0100
++++ cpu.c
+@@ -45,10 +45,10 @@ __u32 mask[32][32];
+ int RESERVE = 0;
+ __u32 RESERVE_ADDR = 0;
+
++#if 0
+ double (*fp_round[]) (double) = { round, trunc, ceil, floor };
+ #define FP_ROUND(D) (fp_round[FPSCR_RN] (D))
+
+-#if 0
+ # include <fenv.h>
+ int fp_round_mode[] = { FE_TONEAREST, FE_TOWARDZERO, FE_UPWARD, FE_DOWNWARD };
+ # define SET_ROUNDING_MODE (fesetround (fp_round_mode[FPSCR_RN]))