]> git.proxmox.com Git - mirror_qemu.git/blame - target/lm32/machine.c
Include qemu-common.h exactly where needed
[mirror_qemu.git] / target / lm32 / machine.c
CommitLineData
ea99dde1 1#include "qemu/osdep.h"
33c11879 2#include "cpu.h"
c6af5693
MW
3#include "hw/hw.h"
4#include "hw/boards.h"
1e00b8d5 5#include "migration/cpu.h"
c6af5693 6
0ad6773f
AF
7static const VMStateDescription vmstate_env = {
8 .name = "env",
9 .version_id = 1,
c6af5693 10 .minimum_version_id = 1,
35d08458 11 .fields = (VMStateField[]) {
6393c08d
AF
12 VMSTATE_UINT32_ARRAY(regs, CPULM32State, 32),
13 VMSTATE_UINT32(pc, CPULM32State),
14 VMSTATE_UINT32(ie, CPULM32State),
15 VMSTATE_UINT32(icc, CPULM32State),
16 VMSTATE_UINT32(dcc, CPULM32State),
17 VMSTATE_UINT32(cc, CPULM32State),
18 VMSTATE_UINT32(eba, CPULM32State),
19 VMSTATE_UINT32(dc, CPULM32State),
20 VMSTATE_UINT32(deba, CPULM32State),
21 VMSTATE_UINT32_ARRAY(bp, CPULM32State, 4),
22 VMSTATE_UINT32_ARRAY(wp, CPULM32State, 4),
c6af5693
MW
23 VMSTATE_END_OF_LIST()
24 }
25};
26
0ad6773f
AF
27const VMStateDescription vmstate_lm32_cpu = {
28 .name = "cpu",
29 .version_id = 1,
30 .minimum_version_id = 1,
35d08458 31 .fields = (VMStateField[]) {
0ad6773f
AF
32 VMSTATE_STRUCT(env, LM32CPU, 1, vmstate_env, CPULM32State),
33 VMSTATE_END_OF_LIST()
34 }
35};