freebsd-ports/emulators/lisaem/files/patch-generator__reg68k.c
Pawel Pekala 7a49fda5bf - Fix build with clang
- Add desktop entry file
- Support staging

PR:		ports/184866
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-12-20 16:43:48 +00:00

19 lines
1.1 KiB
C

--- generator/reg68k.c.orig
+++ generator/reg68k.c
@@ -1308,7 +1308,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- if (abort_opcode==1) {EXIT(476,0,"MMU/BUS/Address exception occured on opcode fetch!\n");}
+ if (abort_opcode==1) {EXITR(476,0,"MMU/BUS/Address exception occured on opcode fetch!\n");}
abort_opcode=0; // clear any addr/bus errors/traps/etc that may have occured.
InstructionRegister=ipc->opcode;
@@ -1397,7 +1397,7 @@
InstructionRegister=ipc->opcode;
abort_opcode=0;
if (ipc->function) ipc->function(ipc);
- else { EXIT(277,0,"No ipc function at %d/%08x, even after attempting to get one!\n",context,pc24);}
+ else { EXITR(277,0,"No ipc function at %d/%08x, even after attempting to get one!\n",context,pc24);}
}
} // if we have it, execute, else loop is done. :)