mirror of https://github.com/xqemu/xqemu.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 <quintela@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
da69721460
commit
8d0f2baebe
|
@ -279,8 +279,10 @@ bool tcg_enabled(void);
|
||||||
void cpu_exec_init_all(void);
|
void cpu_exec_init_all(void);
|
||||||
|
|
||||||
/* CPU save/load. */
|
/* CPU save/load. */
|
||||||
|
#ifdef CPU_SAVE_VERSION
|
||||||
void cpu_save(QEMUFile *f, void *opaque);
|
void cpu_save(QEMUFile *f, void *opaque);
|
||||||
int cpu_load(QEMUFile *f, void *opaque, int version_id);
|
int cpu_load(QEMUFile *f, void *opaque, int version_id);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Unblock cpu */
|
/* Unblock cpu */
|
||||||
void qemu_cpu_kick_self(void);
|
void qemu_cpu_kick_self(void);
|
||||||
|
|
Loading…
Reference in New Issue