Rather than rely on the arch specific ones. If an arch specific one
is defined nothing happens as we ifdef guard the generic prototypes.

This does then allow for removal of the arch specific dummy
prototypes for those archs that dont need to provide an override.

Signed-off-by: Peter Crosthwaite <crosthwaite.pe...@gmail.com>
---
 include/exec/cpu-all.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h
index ac06c67..5133684 100644
--- a/include/exec/cpu-all.h
+++ b/include/exec/cpu-all.h
@@ -322,4 +322,13 @@ void qemu_mutex_unlock_ramlist(void);
 int cpu_memory_rw_debug(CPUState *cpu, target_ulong addr,
                         uint8_t *buf, int len, int is_write);
 
+#ifndef cpu_exec
+int cpu_exec(CPUArchState *s);
+#endif
+
+#ifndef cpu_signal_handler
+int cpu_signal_handler(int host_signum, void *pinfo,
+                       void *puc);
+#endif
+
 #endif /* CPU_ALL_H */
-- 
1.9.1


Reply via email to