target-moxie: Fix VMState registration
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Apr 2013 15:51:46 +0000 (16:51 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 12 Apr 2013 12:30:39 +0000 (14:30 +0200)
commit183543cdb68a0f2e1ff1c68d37338037dcc9d6c5
treeb3f6678d5b22c7be09ae663442d251c433c17461
parent93b48c201eb6c0404d15550a0eaa3c0f7937e35e
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>
target-moxie/cpu.c
target-moxie/cpu.h
target-moxie/machine.c