qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [patch] Fix arm self-modifying code
@ 2004-08-02  0:29 Paul Brook
  2004-08-02 12:21 ` Lennert Buytenhek
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Brook @ 2004-08-02  0:29 UTC (permalink / raw)
  To: qemu-devel

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;
 }

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-08-02 22:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-02  0:29 [Qemu-devel] [patch] Fix arm self-modifying code Paul Brook
2004-08-02 12:21 ` Lennert Buytenhek
2004-08-02 12:38   ` Lennert Buytenhek
2004-08-02 12:39   ` Hetz Ben Hamo
2004-08-02 12:49     ` Lennert Buytenhek
2004-08-02 22:36   ` [Qemu-devel] " Ronald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).