CRT_fp10: Protect ARM implementation against compiler optimizations

Suggested-by: David Wohlferd <dw@LimeGreenSocks.com>
This commit is contained in:
André Hentschel 2015-12-24 00:01:06 +01:00
parent 40b1e7a718
commit 5e2e73b775

View File

@ -10,8 +10,7 @@ void _fpreset (void)
{
#if defined(_ARM_) || defined(__arm__)
__asm__ __volatile__ (
"mov r0, #0x00\n\t" /* INITIAL_FPSCR */
"vmsr fpscr, r0\n\t");
"vmsr fpscr, %0\n\t" : : "r"(0 /* INITIAL_FPSCR */));
#else
#ifdef __GNUC__
__asm__ ("fninit");