blob: 70ef379dd042719ffc3286acf53e976c0721a6ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#include "hw/hw.h"
#include "hw/boards.h"
#include "exec-all.h"
#include "qemu-kvm.h"
void cpu_save(QEMUFile *f, void *opaque)
{
CPUState *env = opaque;
if (kvm_enabled()) {
kvm_save_registers(env);
kvm_arch_save_mpstate(env);
}
}
int cpu_load(QEMUFile *f, void *opaque, int version_id)
{
CPUState *env = opaque;
if (kvm_enabled()) {
kvm_load_registers(env);
kvm_arch_load_mpstate(env);
}
return 0;
}
extern QEMUMachine ipf_machine;
static void ipf_machine_init(void)
{
qemu_register_machine(&ipf_machine);
}
machine_init(ipf_machine_init);
|