summaryrefslogtreecommitdiff
path: root/emulators/hercules/patches/patch-ao
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/hercules/patches/patch-ao')
-rw-r--r--emulators/hercules/patches/patch-ao16
1 files changed, 16 insertions, 0 deletions
diff --git a/emulators/hercules/patches/patch-ao b/emulators/hercules/patches/patch-ao
new file mode 100644
index 00000000000..688e7cbf57f
--- /dev/null
+++ b/emulators/hercules/patches/patch-ao
@@ -0,0 +1,16 @@
+$NetBSD: patch-ao,v 1.1 2001/05/11 11:17:40 dmcmahill Exp $
+
+regparm is only for i386
+
+--- opcode.h.orig Sat Feb 10 08:46:27 2001
++++ opcode.h Tue May 8 18:48:56 2001
+@@ -70,5 +70,9 @@
+
+
++#ifdef __i386__
+ typedef __attribute__ ((regparm(3))) void (*zz_func) (BYTE inst[], int execflag, REGS *regs);
++#else
++typedef void (*zz_func) (BYTE inst[], int execflag, REGS *regs);
++#endif
+
+ extern zz_func opcode_table[][GEN_MAXARCH];