]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
target-i386: use vmstate_offset_sub_array for AVX registers
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Oct 2014 08:18:38 +0000 (10:18 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Jan 2015 11:22:44 +0000 (12:22 +0100)
commita03c3e90e11976fb147904d537457984bb938ce2
tree80f2f407154f4efa84277bd50ed1dbac7d2934a9
parenta9c837d8ef573604328e4cb61e2e0cab61bba319
target-i386: use vmstate_offset_sub_array for AVX registers

After the next patch, each vmstate field will extract parts of a larger
(32x512-bit) array, so we cannot check the vmstate field against the
type of the array.

While changing this, change the macros to accept the index of the first
element (which will not be 0 for Hi16_ZMM_REGS) instead of the number
of elements (which is always CPU_NB_REGS).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/migration/vmstate.h
target-i386/machine.c