Skip to content

Commit

Permalink
cpu: Guard cpu_{save,load}() definitions
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Andreas Färber <afaerber@suse.de>
  • Loading branch information
afaerber committed Feb 18, 2013
1 parent 247cd8b commit 80634ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/qemu-common.h
Expand Up @@ -280,8 +280,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);
Expand Down

0 comments on commit 80634ce

Please sign in to comment.