qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [patch] Fix arm self-modifying code


From: Paul Brook
Subject: [Qemu-devel] [patch] Fix arm self-modifying code
Date: Mon, 2 Aug 2004 01:29:58 +0100
User-agent: KMail/1.6.2

The patch adds the signal handling necessary to make arm self-modifying code 
work. You'll notice it looks remarkably similar to the sparc routine :)

This should fix the "uncaught target signal 11" crash people have been seeing.

Paul

Index: cpu-exec.c
===================================================================
RCS file: /cvsroot/qemu/qemu/cpu-exec.c,v
retrieving revision 1.38
diff -u -p -r1.38 cpu-exec.c
--- cpu-exec.c  14 Jul 2004 17:20:55 -0000      1.38
+++ cpu-exec.c  2 Aug 2004 00:24:46 -0000
@@ -718,6 +719,10 @@ static inline int handle_cpu_signal(unsi
                                     int is_write, sigset_t *old_set,
                                     void *puc)
 {
+    /* XXX: locking issue */
+    if (is_write && page_unprotect(address, pc, puc)) {
+        return 1;
+    }
     /* XXX: do more */
     return 0;
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]