Commit 52504931 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntdll: Manually write byte code for the xsavec instruction.

parent 95fe8e5d
......@@ -2601,7 +2601,9 @@ __ASM_GLOBAL_FUNC( __wine_syscall_dispatcher,
"movl %edx,0x274(%ecx)\n\t"
"movl %edx,0x278(%ecx)\n\t"
"movl %edx,0x27c(%ecx)\n\t"
"xsavec 0x40(%ecx)\n\t"
/* The xsavec instruction is not supported by
* binutils < 2.25. */
".byte 0x0f, 0xc7, 0x61, 0x40\n\t" /* xsavec 0x40(%ecx) */
"jmp 4f\n"
"1:\txsave 0x40(%ecx)\n\t"
"jmp 4f\n"
......
......@@ -2693,7 +2693,9 @@ __ASM_GLOBAL_FUNC( __wine_syscall_dispatcher,
"movq %rdx,0x2e8(%rcx)\n\t"
"movq %rdx,0x2f0(%rcx)\n\t"
"movq %rdx,0x2f8(%rcx)\n\t"
"xsavec64 0xc0(%rcx)\n\t"
/* The xsavec instruction is not supported by
* binutils < 2.25. */
".byte 0x48, 0x0f, 0xc7, 0xa1, 0xc0, 0x00, 0x00, 0x00\n\t" /* xsavec64 0xc0(%rcx) */
"jmp 3f\n"
"1:\txsave64 0xc0(%rcx)\n\t"
"jmp 3f\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment