Added atomics support for armv8-a (Raspberry Pi 3)
authorSam Lantinga <slouken@libsdl.org>
Fri, 23 Nov 2018 21:29:42 -0800
changeset 12430d2514b03d3d6
parent 12429 682d6359c430
child 12431 178b6d6b407f
Added atomics support for armv8-a (Raspberry Pi 3)
include/SDL_atomic.h
     1.1 --- a/include/SDL_atomic.h	Fri Nov 23 21:11:11 2018 -0800
     1.2 +++ b/include/SDL_atomic.h	Fri Nov 23 21:29:42 2018 -0800
     1.3 @@ -162,7 +162,7 @@
     1.4  #define SDL_MemoryBarrierRelease()   __asm__ __volatile__ ("dmb ish" : : : "memory")
     1.5  #define SDL_MemoryBarrierAcquire()   __asm__ __volatile__ ("dmb ish" : : : "memory")
     1.6  #elif defined(__GNUC__) && defined(__arm__)
     1.7 -#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7EM__) || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7S__)
     1.8 +#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7EM__) || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7S__) || defined(__ARM_ARCH_8A__)
     1.9  #define SDL_MemoryBarrierRelease()   __asm__ __volatile__ ("dmb ish" : : : "memory")
    1.10  #define SDL_MemoryBarrierAcquire()   __asm__ __volatile__ ("dmb ish" : : : "memory")
    1.11  #elif defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_5TE__)