Hi, This small patchset converts MIPS CPU to use VMStateDescription: [1/2]: ports all the MIPS CPU fields to new VMStateDescription structure [2/2]: adds MSACSR and uses post_load() to restore *fp_status from *CSR registers. These changes include ported Maciej's updates made for old cpu_load/cpu_save sent some time ago.
I tested them by just checking whether the restored guest system still works after savevm/loadvm and migrate commands. This series applies on top of the pending mips-next pull request: http://patchwork.ozlabs.org/patch/439769/ Comments and suggestions are welcome. Thanks, Leon v2: * use cc->vmsd rather than dc->vmsd (Andreas Faerber) * avoid saving TCG-related state (Richard Henderson) Leon Alrae (2): target-mips: replace cpu_save/cpu_load with VMStateDescription target-mips: add missing MSACSR and restore fp_status and hflags target-mips/cpu-qom.h | 4 + target-mips/cpu.c | 1 + target-mips/cpu.h | 19 +- target-mips/machine.c | 571 ++++++++++++++++++++----------------------- target-mips/msa_helper.c | 12 +- target-mips/translate_init.c | 10 +- 6 files changed, 288 insertions(+), 329 deletions(-) -- 2.1.0