aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/pearpc
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2004-08-03 15:02:40 +0800
committermezz <mezz@FreeBSD.org>2004-08-03 15:02:40 +0800
commit0f670a57dc534e402b017cbdd076c32b42c77186 (patch)
treec5184ef535afdf2ba6dd217392b7e1643c99ead9 /emulators/pearpc
parent4b001b731ba17e8b1812b08a5f7a7eabd70895c2 (diff)
downloadfreebsd-ports-gnome-0f670a57dc534e402b017cbdd076c32b42c77186.tar.gz
freebsd-ports-gnome-0f670a57dc534e402b017cbdd076c32b42c77186.tar.zst
freebsd-ports-gnome-0f670a57dc534e402b017cbdd076c32b42c77186.zip
Fix the build with GCC 3.4.x.
PR: ports/69904 Submitted by: Roman Bogorodskiy <bogorodskiy@inbox.ru> (maintainer)
Diffstat (limited to 'emulators/pearpc')
-rw-r--r--emulators/pearpc/files/patch-src-cpu_generic-ppc_cpu.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/emulators/pearpc/files/patch-src-cpu_generic-ppc_cpu.cc b/emulators/pearpc/files/patch-src-cpu_generic-ppc_cpu.cc
new file mode 100644
index 000000000000..26e6007ffb7e
--- /dev/null
+++ b/emulators/pearpc/files/patch-src-cpu_generic-ppc_cpu.cc
@@ -0,0 +1,11 @@
+--- src/cpu_generic/ppc_cpu.cc.orig Sun Aug 1 19:42:05 2004
++++ src/cpu_generic/ppc_cpu.cc Thu May 6 02:48:30 2004
+@@ -108,7 +108,7 @@
+ ppc_debug_hook();
+ } else {
+ int ret;
++ if ((ret = ppc_direct_effective_memory_handle_code(gCPU.pc & ~0xfff, (byte *&)gCPU.physical_code_page))) {
+- if ((ret = ppc_direct_effective_memory_handle_code(gCPU.pc & ~0xfff, gCPU.physical_code_page))) {
+ if (ret == PPC_MMU_EXC) {
+ gCPU.pc = gCPU.npc;
+ continue;