diff options
author | Andreas Färber <afaerber@suse.de> | 2013-02-02 15:51:06 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-06-28 13:25:12 +0200 |
commit | 8d0f2baebe57ccdb09a21da80b2994b772854ad6 (patch) | |
tree | 277c5390f6e93996a9ca2c7bd1f9038105687b45 /include/qemu-common.h | |
parent | da69721460e652072b6a3dd52b7693da21ffe237 (diff) | |
download | qemu-8d0f2baebe57ccdb09a21da80b2994b772854ad6.tar.gz qemu-8d0f2baebe57ccdb09a21da80b2994b772854ad6.tar.bz2 qemu-8d0f2baebe57ccdb09a21da80b2994b772854ad6.zip |
cpu: Guard cpu_{save,load}() definitions
A few targets already managed to implement cpu_save() and cpu_load()
without defining CPU_SAVE_VERSION that causes them to be registered.
Guard the prototypes with CPU_SAVE_VERSION to avoid this happening again
until all targets are converted to VMState (or QIDL).
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/qemu-common.h')
-rw-r--r-- | include/qemu-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu-common.h b/include/qemu-common.h index 3c913758c9..6010bba204 100644 --- a/include/qemu-common.h +++ b/include/qemu-common.h @@ -279,8 +279,10 @@ bool tcg_enabled(void); void cpu_exec_init_all(void); /* CPU save/load. */ +#ifdef CPU_SAVE_VERSION void cpu_save(QEMUFile *f, void *opaque); int cpu_load(QEMUFile *f, void *opaque, int version_id); +#endif /* Unblock cpu */ void qemu_cpu_kick_self(void); |