Added #ifdef for ARM-specific inline assembly
This commit is contained in:
parent
898b14a4f2
commit
d2d59d2a1c
1 changed files with 2 additions and 2 deletions
|
@ -2014,7 +2014,7 @@ void m68k_go(int may_quit)
|
||||||
#ifdef USE_JIT_FPU
|
#ifdef USE_JIT_FPU
|
||||||
#ifdef CPU_AARCH64
|
#ifdef CPU_AARCH64
|
||||||
save_host_fp_regs(fp_buffer);
|
save_host_fp_regs(fp_buffer);
|
||||||
#else
|
#elif defined (CPU_arm)
|
||||||
// This caused crashes in RockChip 32-bit platforms unless it was inlined like this
|
// This caused crashes in RockChip 32-bit platforms unless it was inlined like this
|
||||||
__asm__ volatile ("vstmia %[fp_buffer]!, {d7-d15}"::[fp_buffer] "r" (fp_buffer));
|
__asm__ volatile ("vstmia %[fp_buffer]!, {d7-d15}"::[fp_buffer] "r" (fp_buffer));
|
||||||
#endif
|
#endif
|
||||||
|
@ -2154,7 +2154,7 @@ void m68k_go(int may_quit)
|
||||||
#ifdef USE_JIT_FPU
|
#ifdef USE_JIT_FPU
|
||||||
#ifdef CPU_AARCH64
|
#ifdef CPU_AARCH64
|
||||||
restore_host_fp_regs(fp_buffer);
|
restore_host_fp_regs(fp_buffer);
|
||||||
#else
|
#elif defined (CPU_arm)
|
||||||
// This caused crashes in RockChip platforms unless it was inlined like this
|
// This caused crashes in RockChip platforms unless it was inlined like this
|
||||||
__asm__ volatile ("vldmia %[fp_buffer]!, {d7-d15}" ::[fp_buffer] "r"(fp_buffer));
|
__asm__ volatile ("vldmia %[fp_buffer]!, {d7-d15}" ::[fp_buffer] "r"(fp_buffer));
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue