summaryrefslogtreecommitdiff
path: root/emulators/hercules/patches
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2001-05-11 11:17:39 +0000
committerdmcmahill <dmcmahill>2001-05-11 11:17:39 +0000
commit8cca8d6f2532c9a22d03e174b4e12319df8eaa5c (patch)
tree33de296f56f113cdc809181f40627c4ae98637de /emulators/hercules/patches
parent1f42e402f6f0f4c5edd90f5774fd7e267a7f1519 (diff)
downloadpkgsrc-8cca8d6f2532c9a22d03e174b4e12319df8eaa5c.tar.gz
forgot to cvs add these patches. noted by thomas klausner and the
weekly-pkgsrc check. these eliminate the use of regparm on non-i386 systems.
Diffstat (limited to 'emulators/hercules/patches')
-rw-r--r--emulators/hercules/patches/patch-an54
-rw-r--r--emulators/hercules/patches/patch-ao16
2 files changed, 70 insertions, 0 deletions
diff --git a/emulators/hercules/patches/patch-an b/emulators/hercules/patches/patch-an
new file mode 100644
index 00000000000..777dfa88dcc
--- /dev/null
+++ b/emulators/hercules/patches/patch-an
@@ -0,0 +1,54 @@
+$NetBSD: patch-an,v 1.1 2001/05/11 11:17:39 dmcmahill Exp $
+
+regparm is only for i386
+
+--- features.h.orig Thu Feb 1 17:56:32 2001
++++ features.h Tue May 8 18:47:14 2001
+@@ -71,6 +71,11 @@
+ #define ARCH_MODE ARCH_370
+
++#ifdef __i386__
+ #define DEF_INST(_name) \
+ __attribute__ ((regparm(3))) void s370_ ## _name (BYTE inst[], int execflag, REGS *regs)
++#else
++#define DEF_INST(_name) \
++void s370_ ## _name (BYTE inst[], int execflag, REGS *regs)
++#endif
+
+ #define ARCH_DEP(_name) \
+@@ -130,6 +135,11 @@
+ #define ARCH_MODE ARCH_390
+
++#ifdef __i386__
+ #define DEF_INST(_name) \
+ __attribute__ ((regparm(3))) void s390_ ## _name (BYTE inst[], int execflag, REGS *regs)
++#else
++#define DEF_INST(_name) \
++void s390_ ## _name (BYTE inst[], int execflag, REGS *regs)
++#endif
+
+ #define ARCH_DEP(_name) \
+@@ -212,6 +222,11 @@
+ #define SSGROUP_BIT ASCE_G
+
++#ifdef __i386__
+ #define DEF_INST(_name) \
+ __attribute__ ((regparm(3))) void z900_ ## _name (BYTE inst[], int execflag, REGS *regs)
++#else
++#define DEF_INST(_name) \
++void z900_ ## _name (BYTE inst[], int execflag, REGS *regs)
++#endif
+
+ #define ARCH_DEP(_name) \
+@@ -268,6 +283,11 @@
+ #define SSGROUP_BIT ASCE_G
+
++#ifdef __i386__
+ #define DEF_INST(_name) \
+ __attribute__ ((regparm(3))) void z964_ ## _name (BYTE inst[], int execflag, REGS *regs)
++#else
++#define DEF_INST(_name) \
++void z964_ ## _name (BYTE inst[], int execflag, REGS *regs)
++#endif
+
+ #define ARCH_DEP(_name) \
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];