summaryrefslogtreecommitdiff
path: root/target-moxie/cpu.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2013-04-08 16:51:46 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2013-04-12 14:30:39 +0200
commit183543cdb68a0f2e1ff1c68d37338037dcc9d6c5 (patch)
treeb3f6678d5b22c7be09ae663442d251c433c17461 /target-moxie/cpu.c
parent93b48c201eb6c0404d15550a0eaa3c0f7937e35e (diff)
downloadqemu-183543cdb68a0f2e1ff1c68d37338037dcc9d6c5.tar.gz
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/cpu.c')
-rw-r--r--target-moxie/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-moxie/cpu.c b/target-moxie/cpu.c
index c0855f0573..f2b0791b91 100644
--- a/target-moxie/cpu.c
+++ b/target-moxie/cpu.c
@@ -97,7 +97,7 @@ static void moxie_cpu_class_init(ObjectClass *oc, void *data)
cc->class_by_name = moxie_cpu_class_by_name;
- dc->vmsd = &vmstate_moxie_cpu;
+ cpu_class_set_vmsd(cc, &vmstate_moxie_cpu);
cc->do_interrupt = moxie_cpu_do_interrupt;
}