The savevm code for the powerpc cpu emulation is currently based around the old register_savevm() rather than register_vmstate() method. It's also rather broken, missing some important state on some CPU models.
This patch completely rewrites the savevm for target-ppc, using the new
VMStateDescription approach. Exactly what needs to be saved in what configurations has been more carefully examined, too. This introduces a new version (5) of the cpu save format. The old load function is retained to support version 4 images.
a90db15 target-ppc: Convert ppc cpu savevm to VMStateDescription
target-ppc/cpu-qom.h | 4 +
target-ppc/cpu.h | 8 +-
target-ppc/machine.c | 531 ++++++++++++++++++++++++++++++++++++-------
target-ppc/translate_init.c | 1 +
4 files changed, 451 insertions(+), 93 deletions(-)
Upstream: git.qemu.org