[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC qom-cpu v2 8/8] cpu: Guard cpu_{save, load}() definiti
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [RFC qom-cpu v2 8/8] cpu: Guard cpu_{save, load}() definitions |
Date: |
Mon, 18 Feb 2013 20:42:33 +0100 |
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 Datei geändert, 2 Zeilen hinzugefügt(+)
diff --git a/include/qemu-common.h b/include/qemu-common.h
index 80016ad..3a65083 100644
--- a/include/qemu-common.h
+++ b/include/qemu-common.h
@@ -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);
--
1.7.10.4
- Re: [Qemu-devel] [PATCH v3] vmstate: Make vmstate_register() static inline, (continued)
[Qemu-devel] [RFC qom-cpu v2 8/8] cpu: Guard cpu_{save, load}() definitions,
Andreas Färber <=
[Qemu-devel] [PATCH qom-cpu v2 4/8] target-i386: Update VMStateDescription to X86CPU, Andreas Färber, 2013/02/18
[Qemu-devel] [RFC qom-cpu v2 7/8] target-openrisc: Register VMStateDescription for OpenRISCCPU, Andreas Färber, 2013/02/18
[Qemu-devel] [PATCH qom-cpu v2 3/8] cpu: Register VMStateDescription through CPUState, Andreas Färber, 2013/02/18
Re: [Qemu-devel] [PATCH qom-cpu v2 3/8] cpu: Register VMStateDescription through CPUState, Juan Quintela, 2013/02/22