]> git.proxmox.com Git - qemu.git/commitdiff
ARM SMC workaround
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 2 Feb 2005 20:42:01 +0000 (20:42 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 2 Feb 2005 20:42:01 +0000 (20:42 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1263 c046a42c-6fe2-441c-8c8c-71466251a162

cpu-exec.c

index fe4bd906ec44e15496aa9496433fa81dd0fe9767..bbd0c2d7bf87cf30ac61452674c824ae188a3f8b 100644 (file)
@@ -731,7 +731,10 @@ static inline int handle_cpu_signal(unsigned long pc, unsigned long address,
                                     int is_write, sigset_t *old_set,
                                     void *puc)
 {
-    /* XXX: do more */
+    /* XXX: locking issue */
+    if (is_write && page_unprotect(address, pc, puc)) {
+        return 1;
+    }
     return 0;
 }
 #elif defined(TARGET_SPARC)