mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-30 15:00:34 +00:00
183543cdb6
Register the CPU VMState in the correct way, via cpu_class_set_vmsd(), rather than doing it in two different wrong ways (once by providing cpu_save and cpu_load functions, and once by setting the vmsd field in DeviceClass). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
19 lines
561 B
C
19 lines
561 B
C
#include "hw/hw.h"
|
|
#include "hw/boards.h"
|
|
|
|
const VMStateDescription vmstate_moxie_cpu = {
|
|
.name = "cpu",
|
|
.version_id = 1,
|
|
.minimum_version_id = 1,
|
|
.minimum_version_id_old = 1,
|
|
.fields = (VMStateField[]) {
|
|
VMSTATE_UINT32(flags, CPUMoxieState),
|
|
VMSTATE_UINT32_ARRAY(gregs, CPUMoxieState, 16),
|
|
VMSTATE_UINT32_ARRAY(sregs, CPUMoxieState, 256),
|
|
VMSTATE_UINT32(pc, CPUMoxieState),
|
|
VMSTATE_UINT32(cc_a, CPUMoxieState),
|
|
VMSTATE_UINT32(cc_b, CPUMoxieState),
|
|
VMSTATE_END_OF_LIST()
|
|
}
|
|
};
|