2006-05-06 20:41:49 +02:00
|
|
|
$NetBSD: patch-ab,v 1.6 2006/05/06 18:41:49 xtraeme Exp $
|
2006-01-01 20:12:54 +01:00
|
|
|
|
|
|
|
--- 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;
|
2006-05-06 20:41:49 +02:00
|
|
|
+int cpu_arm_signal_handler(int host_signum, union siginfo *info,
|
2006-01-01 20:12:54 +01:00
|
|
|
+ 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)
|