diff options
author | Andreas Färber <afaerber@suse.de> | 2013-02-02 13:59:05 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-06-28 13:25:12 +0200 |
commit | da69721460e652072b6a3dd52b7693da21ffe237 (patch) | |
tree | 343e881c395c209a277fc56e2403bf1e510fed43 /target-openrisc/cpu.c | |
parent | fe31e7374299c0c6172ce618b29bf2fecbd881c7 (diff) | |
download | qemu-da69721460e652072b6a3dd52b7693da21ffe237.tar.gz |
target-openrisc: Register VMStateDescription for OpenRISCCPU
Since commit e67db06e9f6d7e514ee2a9b9b769ecd42977f6fb (target-or32: Add
target stubs and QOM cpu) a VMStateDescription existed, but
CPU_SAVE_VERSION was not set, so it was never registered.
Drop cpu_{save,load}() and register VMStateDescription via DeviceState.
Use a version_id of 1 and specify minimum versions as well.
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-openrisc/cpu.c')
-rw-r--r-- | target-openrisc/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-openrisc/cpu.c b/target-openrisc/cpu.c index ffe14f3c8d..f8703a0418 100644 --- a/target-openrisc/cpu.c +++ b/target-openrisc/cpu.c @@ -149,6 +149,7 @@ static void openrisc_cpu_class_init(ObjectClass *oc, void *data) cc->class_by_name = openrisc_cpu_class_by_name; cc->do_interrupt = openrisc_cpu_do_interrupt; + device_class_set_vmsd(dc, &vmstate_openrisc_cpu); } static void cpu_register(const OpenRISCCPUInfo *info) |