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-qom.h | |
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-qom.h')
-rw-r--r-- | target-lm32/cpu-qom.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target-lm32/cpu-qom.h b/target-lm32/cpu-qom.h index 3ba86b7..9571860 100644 --- a/target-lm32/cpu-qom.h +++ b/target-lm32/cpu-qom.h @@ -71,6 +71,10 @@ static inline LM32CPU *lm32_env_get_cpu(CPULM32State *env) #define ENV_OFFSET offsetof(LM32CPU, env) +#ifndef CONFIG_USER_ONLY +extern const struct VMStateDescription vmstate_lm32_cpu; +#endif + void lm32_cpu_do_interrupt(CPUState *cpu); #endif |