]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: xsave: Helper function to calculate xsave area size
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 22 Sep 2016 20:14:07 +0000 (17:14 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 27 Sep 2016 19:17:17 +0000 (16:17 -0300)
commit1fda6198e4126af9988754c8824cfc9928649890
tree83d8198a5fca5aa8553b174c6ccfaf21b10d4932
parent8057c621b1b17cbcb35fe67d1a09ada9055873a9
target-i386: xsave: Helper function to calculate xsave area size

Move the xsave area size calculation from cpu_x86_cpuid() inside
its own function. While doing it, change it to use the XSAVE area
struct sizes for the initial size, instead of the magic 0x240
number.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/cpu.c