aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-02-15 08:19:45 +0800
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-02-15 08:19:45 +0800
commit8544327c4048918fbb5ec4a019126d4b6dba27d8 (patch)
tree54acef1091ec42baff264adfa5ab9043422a5acc /emulators
parent44fede11420fac8d400a77c639b855ad7bcdd443 (diff)
downloadfreebsd-ports-gnome-8544327c4048918fbb5ec4a019126d4b6dba27d8.tar.gz
freebsd-ports-gnome-8544327c4048918fbb5ec4a019126d4b6dba27d8.tar.zst
freebsd-ports-gnome-8544327c4048918fbb5ec4a019126d4b6dba27d8.zip
emulators/adamem: fix build on powerpc64 elfv2
regparm is only supported on x86.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/adamem/files/patch-Z80IO.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/emulators/adamem/files/patch-Z80IO.h b/emulators/adamem/files/patch-Z80IO.h
index f5cd2495b369..9402c936e420 100644
--- a/emulators/adamem/files/patch-Z80IO.h
+++ b/emulators/adamem/files/patch-Z80IO.h
@@ -1,13 +1,17 @@
-Index: Z80IO.h
-@@ -11,7 +11,6 @@
+--- Z80IO.h.orig 1999-02-14 19:45:30 UTC
++++ Z80IO.h
+@@ -11,9 +11,8 @@
/****************************************************************************/
#define INLINE_OP /* Inline Z80_RDOP() */
-#define INLINE_MEM /* Inline Z80_RDMEM() and Z80_WRMEM() */
- #ifdef __GNUC__
+-#ifdef __GNUC__
++#if defined(__GNUC__) && (defined(__amd64__) || defined(__i386__))
#define FASTCALL __attribute__ ((regparm(3)))
-@@ -36,11 +35,11 @@
+ #ifdef INLINE_MEM
+ #define INLINE_MEM_GNU
+@@ -36,11 +35,11 @@ void Z80_Out (unsigned Port,byte Value) FASTCALL;
/***************************************************************************/
/* Read a byte from given memory location */
/***************************************************************************/