mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
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>
This commit is contained in:
parent
93b48c201e
commit
183543cdb6
3 changed files with 2 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue