]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: fix confusion in xcr0 bit position vs. mask
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 17 Feb 2016 09:54:53 +0000 (10:54 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 25 Feb 2016 15:11:29 +0000 (16:11 +0100)
commitcfc3b074de4b4ccee2540edbf8cfdb026dc19943
tree90583dfea43e624612f2c6ad9fecabf3213e2dfb
parent21a933ea33c820515f331c162c9f7053ca6f4129
target-i386: fix confusion in xcr0 bit position vs. mask

The xsave and xrstor helpers are accessing the x86_ext_save_areas array
using a bit mask instead of a bit position.  Provide two sets of XSTATE_*
definitions and use XSTATE_*_BIT when a bit position is requested.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-i386/cpu.c
target-i386/cpu.h
target-i386/fpu_helper.c
target-i386/mpx_helper.c