pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/mame Support ARM.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b74c7285019d
branches:  trunk
changeset: 650345:b74c7285019d
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Apr 21 17:20:39 2015 +0000

description:
Support ARM.

diffstat:

 emulators/mame/distinfo                             |   3 +-
 emulators/mame/patches/patch-src_osd_sdl_osinline.h |  34 +++++++++++++++++++++
 2 files changed, 36 insertions(+), 1 deletions(-)

diffs (50 lines):

diff -r 4f1e5c380305 -r b74c7285019d emulators/mame/distinfo
--- a/emulators/mame/distinfo   Tue Apr 21 17:18:01 2015 +0000
+++ b/emulators/mame/distinfo   Tue Apr 21 17:20:39 2015 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.34 2015/04/02 22:33:55 wiz Exp $
+$NetBSD: distinfo,v 1.35 2015/04/21 17:20:39 joerg Exp $
 
 SHA1 (mame0160s.zip) = db3d2f10a5c9ef00f629bfd8ab5665874ef581c2
 RMD160 (mame0160s.zip) = 95a0edb499dc81a690ca13040954c87f586ec673
 Size (mame0160s.zip) = 80937878 bytes
 SHA1 (patch-makefile) = 57837dbc8571682e4fd73a2be5771df109c7225f
+SHA1 (patch-src_osd_sdl_osinline.h) = f710a75a51b603905913f2b282c2fc8b92066466
diff -r 4f1e5c380305 -r b74c7285019d emulators/mame/patches/patch-src_osd_sdl_osinline.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/mame/patches/patch-src_osd_sdl_osinline.h       Tue Apr 21 17:20:39 2015 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-src_osd_sdl_osinline.h,v 1.1 2015/04/21 17:20:39 joerg Exp $
+
+--- src/osd/sdl/osinline.h.orig        2015-04-17 15:09:28.000000000 +0000
++++ src/osd/sdl/osinline.h
+@@ -83,6 +83,29 @@ _osd_exchange64(INT64 volatile *ptr, INT
+ 
+ #endif /* __ppc64__ || __PPC64__ */
+ 
++#elif defined(__arm__)
++INLINE void ATTR_FORCE_INLINE
++osd_yield_processor(void)
++{
++}
++
++INLINE INT32 ATTR_UNUSED ATTR_NONNULL(1) ATTR_FORCE_INLINE
++_osd_exchange32(INT32 volatile *ptr, INT32 exchange)
++{
++      INT32 before;
++      do {
++              before = *ptr;
++      } while (!__sync_bool_compare_and_swap(ptr, before, exchange));
++      return before;
++}
++
++INLINE int ATTR_UNUSED ATTR_NONNULL(1) ATTR_FORCE_INLINE
++_osd_compare_exchange32(INT32 volatile *ptr, INT32 before, INT32 after)
++{
++      return __sync_bool_compare_and_swap(ptr, before, after);
++}
++#define osd_exchange32 _osd_exchange32
++#define osd_compare_exchange32 _osd_compare_exchange32
+ #else
+ 
+ #error "no matching assembler implementations found - please compile with NOASM=1"



Home | Main Index | Thread Index | Old Index