memory: fix segv on qemu_ram_free(block=0x0)
[qemu/ar7.git] / target-moxie / machine.c
blob912b79139a5a1adedf980f6c74a961aff36d5f6c
1 #include "qemu/osdep.h"
2 #include "hw/hw.h"
3 #include "hw/boards.h"
4 #include "machine.h"
6 const VMStateDescription vmstate_moxie_cpu = {
7 .name = "cpu",
8 .version_id = 1,
9 .minimum_version_id = 1,
10 .fields = (VMStateField[]) {
11 VMSTATE_UINT32(flags, CPUMoxieState),
12 VMSTATE_UINT32_ARRAY(gregs, CPUMoxieState, 16),
13 VMSTATE_UINT32_ARRAY(sregs, CPUMoxieState, 256),
14 VMSTATE_UINT32(pc, CPUMoxieState),
15 VMSTATE_UINT32(cc_a, CPUMoxieState),
16 VMSTATE_UINT32(cc_b, CPUMoxieState),
17 VMSTATE_END_OF_LIST()