summaryrefslogtreecommitdiff
path: root/emulators/hercules/patches/patch-an
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2001-05-11 11:17:39 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2001-05-11 11:17:39 +0000
commit68a57288f74ffa37abf613b4de2461496297f13c (patch)
tree33de296f56f113cdc809181f40627c4ae98637de /emulators/hercules/patches/patch-an
parent1eb0c4283a33874eaf5a712c033ab07640f2a7ed (diff)
downloadpkgsrc-68a57288f74ffa37abf613b4de2461496297f13c.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/patch-an')
-rw-r--r--emulators/hercules/patches/patch-an54
1 files changed, 54 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) \