pkgsrc/emulators/qemu/patches/patch-ab
2006-05-06 18:41:49 +00:00

20 lines
734 B
Text

$NetBSD: patch-ab,v 1.6 2006/05/06 18:41:49 xtraeme Exp $
--- target-arm/cpu.h.orig 2005-12-19 23:51:53.000000000 +0100
+++ target-arm/cpu.h
@@ -122,9 +122,15 @@ void switch_mode(CPUARMState *, int);
/* you can call this signal handler from your SIGBUS and SIGSEGV
signal handlers to inform the virtual CPU of exceptions. non zero
is returned if the signal was handled by the virtual CPU. */
+#ifdef __NetBSD__
+union siginfo;
+int cpu_arm_signal_handler(int host_signum, union siginfo *info,
+ void *puc);
+#else
struct siginfo;
int cpu_arm_signal_handler(int host_signum, struct siginfo *info,
void *puc);
+#endif
#define CPSR_M (0x1f)
#define CPSR_T (1 << 5)