mirror of https://gitee.com/openkylin/qemu.git
target-sh4: Mark as unmigratable
It neither defined CPU_SAVE_VERSION nor implemented cpu{save,load}(). Mark it as unmigratable at device level. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
004a569057
commit
1e45d31b04
|
@ -1,2 +1 @@
|
||||||
obj-y += translate.o op_helper.o helper.o cpu.o
|
obj-y += translate.o op_helper.o helper.o cpu.o
|
||||||
obj-$(CONFIG_SOFTMMU) += machine.o
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
|
#include "migration/vmstate.h"
|
||||||
|
|
||||||
|
|
||||||
/* CPUClass::reset() */
|
/* CPUClass::reset() */
|
||||||
|
@ -63,13 +64,21 @@ static void superh_cpu_initfn(Object *obj)
|
||||||
env->movcal_backup_tail = &(env->movcal_backup);
|
env->movcal_backup_tail = &(env->movcal_backup);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const VMStateDescription vmstate_sh_cpu = {
|
||||||
|
.name = "cpu",
|
||||||
|
.unmigratable = 1,
|
||||||
|
};
|
||||||
|
|
||||||
static void superh_cpu_class_init(ObjectClass *oc, void *data)
|
static void superh_cpu_class_init(ObjectClass *oc, void *data)
|
||||||
{
|
{
|
||||||
|
DeviceClass *dc = DEVICE_CLASS(oc);
|
||||||
CPUClass *cc = CPU_CLASS(oc);
|
CPUClass *cc = CPU_CLASS(oc);
|
||||||
SuperHCPUClass *scc = SUPERH_CPU_CLASS(oc);
|
SuperHCPUClass *scc = SUPERH_CPU_CLASS(oc);
|
||||||
|
|
||||||
scc->parent_reset = cc->reset;
|
scc->parent_reset = cc->reset;
|
||||||
cc->reset = superh_cpu_reset;
|
cc->reset = superh_cpu_reset;
|
||||||
|
|
||||||
|
dc->vmsd = &vmstate_sh_cpu;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const TypeInfo superh_cpu_type_info = {
|
static const TypeInfo superh_cpu_type_info = {
|
||||||
|
|
Loading…
Reference in New Issue