mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target/i386: Convert do_xsave to X86Access
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
7973eb943e
commit
c6e6d1508a
2 changed files with 43 additions and 31 deletions
|
@ -329,7 +329,7 @@ static void xsave_sigcontext(CPUX86State *env,
|
|||
|
||||
/* Zero the header, XSAVE *adds* features to an existing save state. */
|
||||
memset(fxstate + 1, 0, sizeof(X86XSaveHeader));
|
||||
cpu_x86_xsave(env, xstate_addr, -1);
|
||||
cpu_x86_xsave(env, xstate_addr, env->xcr0);
|
||||
|
||||
__put_user(TARGET_FP_XSTATE_MAGIC1, &sw->magic1);
|
||||
__put_user(extended_size, &sw->extended_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue