Commit 17469a8f authored by Bkg2k's avatar Bkg2k

fix(ci): fix x86 asm code not compiling

parent 4673138c
......@@ -4,7 +4,7 @@
#
################################################################################
LIBRETRO_MAME2015_VERSION = 80a2e82cf96ddcc900286c5e1d877bb99700bd6b
LIBRETRO_MAME2015_VERSION = d43c94fde66ce419800882a344002a2736d163df
LIBRETRO_MAME2015_SITE = $(call github,libretro,mame2015-libretro,$(LIBRETRO_MAME2015_VERSION))
LIBRETRO_MAME2015_LICENSE = MAME
......
--- a/src/osd/eigccx86.h 2019-05-13 18:32:26.924515734 +0200
+++ b/src/osd/eigccx86.h.new 2019-05-13 18:32:04.408417172 +0200
@@ -348,18 +348,10 @@
INLINE INT64 ATTR_NONNULL(1) ATTR_FORCE_INLINE
_compare_exchange64(INT64 volatile *ptr, INT64 compare, INT64 exchange)
{
- register INT64 result;
-
- __asm__ __volatile__ (
- " lock ; cmpxchgq %[exchange], %[ptr] ;"
- : [ptr] "+m" (*ptr)
- , [result] "=a" (result)
- : [compare] "1" (compare)
- , [exchange] "q" (exchange)
- : "cc"
- );
-
- return result;
+ INT64 oldval = *ptr;
+ if (oldval == compare)
+ *ptr = exchange;
+ return oldval;
}
/*-------------------------------------------------
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment