Commit 9f0777ed8812ac98b32ab55bbf87056ba913f8b6

Authored by bellard
1 parent 6bae7071

ARM SMC workaround


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1263 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 1 deletions
cpu-exec.c
@@ -731,7 +731,10 @@ static inline int handle_cpu_signal(unsigned long pc, unsigned long address, @@ -731,7 +731,10 @@ static inline int handle_cpu_signal(unsigned long pc, unsigned long address,
731 int is_write, sigset_t *old_set, 731 int is_write, sigset_t *old_set,
732 void *puc) 732 void *puc)
733 { 733 {
734 - /* XXX: do more */ 734 + /* XXX: locking issue */
  735 + if (is_write && page_unprotect(address, pc, puc)) {
  736 + return 1;
  737 + }
735 return 0; 738 return 0;
736 } 739 }
737 #elif defined(TARGET_SPARC) 740 #elif defined(TARGET_SPARC)