summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-ab
blob: f31c1f2193c62ed6a2dbd08c598bb8e6600ed7d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$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)