2016-01-27 02:17:25 +08:00
|
|
|
#include "qemu/osdep.h"
|
2016-03-15 23:58:45 +08:00
|
|
|
#include "qemu-common.h"
|
|
|
|
#include "cpu.h"
|
2013-03-19 03:49:22 +08:00
|
|
|
#include "hw/hw.h"
|
|
|
|
#include "hw/boards.h"
|
2015-02-07 05:43:12 +08:00
|
|
|
#include "machine.h"
|
2016-03-15 19:51:18 +08:00
|
|
|
#include "migration/cpu.h"
|
2013-03-19 03:49:22 +08:00
|
|
|
|
|
|
|
const VMStateDescription vmstate_moxie_cpu = {
|
|
|
|
.name = "cpu",
|
2013-04-08 23:51:46 +08:00
|
|
|
.version_id = 1,
|
2013-03-19 03:49:22 +08:00
|
|
|
.minimum_version_id = 1,
|
2014-04-16 22:01:33 +08:00
|
|
|
.fields = (VMStateField[]) {
|
2013-03-19 03:49:22 +08:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
};
|