libretro / libretro-common

Reusable coding blocks useful for libretro core and frontend development, written primarily in C. Permissively licensed.
137 stars 74 forks source link

arm thumb2 support #20

Closed repojohnray closed 8 years ago

repojohnray commented 8 years ago

Here is below a patch to add ARM thumb2 support. Tested using gcc-5.4 (-with-arch=armv7-a --with-tune=cortex-a7 --with-fpu=neon-vfpv4 --with-float=hard --with-mode=thumb) and libretro-dosbox.

--- armeabi.c.orig 2016-07-25 22:40:54.000000000 +0200 +++ armeabi.c 2016-07-25 22:42:58.000000000 +0200 @@ -22,7 +22,25 @@ static thread_local uint32_t co_active_buffer[64]; static thread_local cothread_t co_active_handle;

-asm ( +#if defined(thumb2)

repojohnray commented 8 years ago

thumb2 is with double underline before and after.

inactive123 commented 8 years ago

Added this, thanks