diff options
author | Andreas Färber <afaerber@suse.de> | 2013-02-02 13:45:29 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-03-12 10:35:55 +0100 |
commit | 0ad6773f1151c9e172b0b714aada78655dda4cf4 (patch) | |
tree | 66c68bddfc79af0f1d695d0ef62155b15326091a /target-lm32/cpu.c | |
parent | e6f010cc27177c97596455b2e2b589bd19b2a486 (diff) | |
download | qemu-0ad6773f1151c9e172b0b714aada78655dda4cf4.zip qemu-0ad6773f1151c9e172b0b714aada78655dda4cf4.tar.gz qemu-0ad6773f1151c9e172b0b714aada78655dda4cf4.tar.bz2 |
target-lm32: Update VMStateDescription to LM32CPU
Add a vmstate_lm32_cpu referencing the previous VMStateDescription as a
sub-struct and hook it up to CPUClass::vmsd. Drop cpu_{save,load}().
Acked-by: Michael Walle <michael@walle.cc>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-lm32/cpu.c')
-rw-r--r-- | target-lm32/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-lm32/cpu.c b/target-lm32/cpu.c index a4692b7..bbb7fbf 100644 --- a/target-lm32/cpu.c +++ b/target-lm32/cpu.c @@ -85,6 +85,7 @@ static void lm32_cpu_class_init(ObjectClass *oc, void *data) cc->reset = lm32_cpu_reset; cc->do_interrupt = lm32_cpu_do_interrupt; + cpu_class_set_vmsd(cc, &vmstate_lm32_cpu); } static const TypeInfo lm32_cpu_type_info = { |