root / target-lm32 / machine.c @ 5ce5944d
History | View | Annotate | Download (1 kB)
1 | c6af5693 | Michael Walle | #include "hw/hw.h" |
---|---|---|---|
2 | c6af5693 | Michael Walle | #include "hw/boards.h" |
3 | c6af5693 | Michael Walle | |
4 | 0ad6773f | Andreas Färber | static const VMStateDescription vmstate_env = { |
5 | 0ad6773f | Andreas Färber | .name = "env",
|
6 | 0ad6773f | Andreas Färber | .version_id = 1,
|
7 | c6af5693 | Michael Walle | .minimum_version_id = 1,
|
8 | c6af5693 | Michael Walle | .minimum_version_id_old = 1,
|
9 | c6af5693 | Michael Walle | .fields = (VMStateField[]) { |
10 | 6393c08d | Andreas Färber | VMSTATE_UINT32_ARRAY(regs, CPULM32State, 32),
|
11 | 6393c08d | Andreas Färber | VMSTATE_UINT32(pc, CPULM32State), |
12 | 6393c08d | Andreas Färber | VMSTATE_UINT32(ie, CPULM32State), |
13 | 6393c08d | Andreas Färber | VMSTATE_UINT32(icc, CPULM32State), |
14 | 6393c08d | Andreas Färber | VMSTATE_UINT32(dcc, CPULM32State), |
15 | 6393c08d | Andreas Färber | VMSTATE_UINT32(cc, CPULM32State), |
16 | 6393c08d | Andreas Färber | VMSTATE_UINT32(eba, CPULM32State), |
17 | 6393c08d | Andreas Färber | VMSTATE_UINT32(dc, CPULM32State), |
18 | 6393c08d | Andreas Färber | VMSTATE_UINT32(deba, CPULM32State), |
19 | 6393c08d | Andreas Färber | VMSTATE_UINT32_ARRAY(bp, CPULM32State, 4),
|
20 | 6393c08d | Andreas Färber | VMSTATE_UINT32_ARRAY(wp, CPULM32State, 4),
|
21 | c6af5693 | Michael Walle | VMSTATE_END_OF_LIST() |
22 | c6af5693 | Michael Walle | } |
23 | c6af5693 | Michael Walle | }; |
24 | c6af5693 | Michael Walle | |
25 | 0ad6773f | Andreas Färber | const VMStateDescription vmstate_lm32_cpu = {
|
26 | 0ad6773f | Andreas Färber | .name = "cpu",
|
27 | 0ad6773f | Andreas Färber | .version_id = 1,
|
28 | 0ad6773f | Andreas Färber | .minimum_version_id = 1,
|
29 | 0ad6773f | Andreas Färber | .minimum_version_id_old = 1,
|
30 | 0ad6773f | Andreas Färber | .fields = (VMStateField[]) { |
31 | 0ad6773f | Andreas Färber | VMSTATE_STRUCT(env, LM32CPU, 1, vmstate_env, CPULM32State),
|
32 | 0ad6773f | Andreas Färber | VMSTATE_END_OF_LIST() |
33 | 0ad6773f | Andreas Färber | } |
34 | 0ad6773f | Andreas Färber | }; |