diff options
author | Andreas Färber | 2013-01-21 00:27:16 +0100 |
---|---|---|
committer | Andreas Färber | 2013-06-28 13:25:12 +0200 |
commit | fe31e7374299c0c6172ce618b29bf2fecbd881c7 (patch) | |
tree | 3ce0517adea6b6c091d78c3bd368824537a7a3b9 /target-alpha/cpu-qom.h | |
parent | cpu: Introduce VMSTATE_CPU() macro for CPUState (diff) | |
download | qemu-fe31e7374299c0c6172ce618b29bf2fecbd881c7.tar.gz qemu-fe31e7374299c0c6172ce618b29bf2fecbd881c7.tar.xz qemu-fe31e7374299c0c6172ce618b29bf2fecbd881c7.zip |
target-alpha: Register VMStateDescription for AlphaCPU
Commit b758aca1f6cdb175634812b79f5560c36c902d00 (target-alpha: Enable
the alpha-softmmu target.) introduced cpu_{save,load}() functions but
didn't define CPU_SAVE_VERSION, so they were never registered.
Drop cpu_{save,load}() and register the VMStateDescription via DeviceClass.
This operates on the AlphaCPU object instead of CPUAlphaState.
Reviewed-by: Juan Quintela <quintela@redhat.com>
Acked-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-alpha/cpu-qom.h')
-rw-r--r-- | target-alpha/cpu-qom.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target-alpha/cpu-qom.h b/target-alpha/cpu-qom.h index 32ee286db3..ee10ed6060 100644 --- a/target-alpha/cpu-qom.h +++ b/target-alpha/cpu-qom.h @@ -74,6 +74,10 @@ static inline AlphaCPU *alpha_env_get_cpu(CPUAlphaState *env) #define ENV_OFFSET offsetof(AlphaCPU, env) +#ifndef CONFIG_USER_ONLY +extern const struct VMStateDescription vmstate_alpha_cpu; +#endif + void alpha_cpu_do_interrupt(CPUState *cpu); #endif |