From: Andreas Färber Date: Sat, 2 Feb 2013 14:51:06 +0000 (+0100) Subject: cpu: Guard cpu_{save,load}() definitions X-Git-Tag: qemu-xen-4.4.0-rc1~6^2~251^2~18 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8d0f2baebe57ccdb09a21da80b2994b772854ad6;p=qemu-xen.git 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 Signed-off-by: Andreas Färber --- 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);