4 static const VMStateDescription vmstate_cpu
= {
6 .version_id
= CPU_SAVE_VERSION
,
7 .minimum_version_id
= 1,
8 .minimum_version_id_old
= 1,
9 .fields
= (VMStateField
[]) {
10 VMSTATE_UINT32_ARRAY(regs
, CPUState
, 32),
11 VMSTATE_UINT32(pc
, CPUState
),
12 VMSTATE_UINT32(ie
, CPUState
),
13 VMSTATE_UINT32(icc
, CPUState
),
14 VMSTATE_UINT32(dcc
, CPUState
),
15 VMSTATE_UINT32(cc
, CPUState
),
16 VMSTATE_UINT32(eba
, CPUState
),
17 VMSTATE_UINT32(dc
, CPUState
),
18 VMSTATE_UINT32(deba
, CPUState
),
19 VMSTATE_UINT32_ARRAY(bp
, CPUState
, 4),
20 VMSTATE_UINT32_ARRAY(wp
, CPUState
, 4),
25 void cpu_save(QEMUFile
*f
, void *opaque
)
27 vmstate_save_state(f
, &vmstate_cpu
, opaque
);
30 int cpu_load(QEMUFile
*f
, void *opaque
, int version_id
)
32 return vmstate_load_state(f
, &vmstate_cpu
, opaque
, version_id
);