mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
@@ -621,7 +621,7 @@ void _CPU_Context_save_fp(
|
||||
__asm__ __volatile__( \
|
||||
"fldcw %0" \
|
||||
::"m"((*(fp_context_pp))->fpucw) \
|
||||
:"fpcr" \
|
||||
:"memory" \
|
||||
); \
|
||||
__builtin_ia32_ldmxcsr(_Thread_Executing->fp_context->mxcsr); \
|
||||
} while (0)
|
||||
@@ -640,7 +640,7 @@ void _CPU_Context_restore_fp(
|
||||
: \
|
||||
:"st","st(1)","st(2)","st(3)", \
|
||||
"st(4)","st(5)","st(6)","st(7)", \
|
||||
"fpsr","fpcr" \
|
||||
"fpsr","memory" \
|
||||
); \
|
||||
if ( _Thread_Executing->fp_context ) { \
|
||||
_CPU_Context_restore_fp(&_Thread_Executing->fp_context); \
|
||||
|
||||
@@ -229,7 +229,7 @@ fp_ld(Context_Control_sse *p_ctxt, int i)
|
||||
#define FPUCLOBBER \
|
||||
"st","st(1)","st(2)","st(3)", \
|
||||
"st(4)","st(5)","st(6)","st(7)",\
|
||||
"fpsr","fpcr"
|
||||
"fpsr","memory"
|
||||
|
||||
/* There seems to be no way to say that mxcsr was clobbered */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user