[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH qom-cpu v3 6/6] cpu: Guard cpu_{save, load}() defini
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH qom-cpu v3 6/6] cpu: Guard cpu_{save, load}() definitions |
Date: |
Tue, 18 Jun 2013 02:29:45 +0200 |
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 <address@hidden>
---
include/qemu-common.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/qemu-common.h b/include/qemu-common.h
index 3c91375..6010bba 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);
--
1.8.1.4
- [Qemu-devel] [PATCH qom-cpu v3 0/6] QOM CPUState migration, next generation, Andreas Färber, 2013/06/17
- [Qemu-devel] [PATCH qom-cpu v3 1/6] cpu: Fix cpu_class_set_vmsd() documentation, Andreas Färber, 2013/06/17
- [Qemu-devel] [PATCH qom-cpu v3 3/6] cpu: Introduce VMSTATE_CPU() macro for CPUState, Andreas Färber, 2013/06/17
- [Qemu-devel] [PATCH qom-cpu v3 2/6] cpu: Introduce device_class_set_vmsd() helper, Andreas Färber, 2013/06/17
- [Qemu-devel] [PATCH qom-cpu v3 4/6] target-alpha: Register VMStateDescription for AlphaCPU, Andreas Färber, 2013/06/17
- [Qemu-devel] [PATCH qom-cpu v3 6/6] cpu: Guard cpu_{save, load}() definitions,
Andreas Färber <=
- [Qemu-devel] [PATCH qom-cpu v3 5/6] target-openrisc: Register VMStateDescription for OpenRISCCPU, Andreas Färber, 2013/06/17
- Re: [Qemu-devel] [PATCH qom-cpu v3 0/6] QOM CPUState migration, next generation, Andreas Färber, 2013/06/18