diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-04-08 16:51:46 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-04-12 14:30:39 +0200 |
commit | 183543cdb68a0f2e1ff1c68d37338037dcc9d6c5 (patch) | |
tree | b3f6678d5b22c7be09ae663442d251c433c17461 /target-moxie/machine.c | |
parent | 93b48c201eb6c0404d15550a0eaa3c0f7937e35e (diff) | |
download | qemu-183543cdb68a0f2e1ff1c68d37338037dcc9d6c5.zip qemu-183543cdb68a0f2e1ff1c68d37338037dcc9d6c5.tar.gz qemu-183543cdb68a0f2e1ff1c68d37338037dcc9d6c5.tar.bz2 |
target-moxie: Fix VMState registration
Register the CPU VMState in the correct way, via cpu_class_set_vmsd(),
rather than doing it in two different wrong ways (once by providing
cpu_save and cpu_load functions, and once by setting the vmsd field in
DeviceClass).
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'target-moxie/machine.c')
-rw-r--r-- | target-moxie/machine.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/target-moxie/machine.c b/target-moxie/machine.c index 5bfdb28..0f5992b 100644 --- a/target-moxie/machine.c +++ b/target-moxie/machine.c @@ -3,7 +3,7 @@ const VMStateDescription vmstate_moxie_cpu = { .name = "cpu", - .version_id = CPU_SAVE_VERSION, + .version_id = 1, .minimum_version_id = 1, .minimum_version_id_old = 1, .fields = (VMStateField[]) { @@ -16,13 +16,3 @@ const VMStateDescription vmstate_moxie_cpu = { VMSTATE_END_OF_LIST() } }; - -void cpu_save(QEMUFile *f, void *opaque) -{ - vmstate_save_state(f, &vmstate_moxie_cpu, opaque); -} - -int cpu_load(QEMUFile *f, void *opaque, int version_id) -{ - return vmstate_load_state(f, &vmstate_moxie_cpu, opaque, version_id); -} |