qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH][ARM] Wrong address for data/prefetch aborts in user mode
@ 2008-07-28 11:17 Laurent Desnogues
  0 siblings, 0 replies; only message in thread
From: Laurent Desnogues @ 2008-07-28 11:17 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 98 bytes --]

Hello,

the address puts in the target siginfo is swapped for data and prefetch
aborts.


Laurent

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: arm-abort.patch --]
[-- Type: text/x-patch; name=arm-abort.patch, Size: 588 bytes --]

Index: linux-user/main.c
===================================================================
--- linux-user/main.c	(revision 4955)
+++ linux-user/main.c	(working copy)
@@ -709,10 +709,10 @@
             /* just indicate that signals should be handled asap */
             break;
         case EXCP_PREFETCH_ABORT:
-            addr = env->cp15.c6_data;
+            addr = env->cp15.c6_insn;
             goto do_segv;
         case EXCP_DATA_ABORT:
-            addr = env->cp15.c6_insn;
+            addr = env->cp15.c6_data;
             goto do_segv;
         do_segv:
             {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-28 11:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-28 11:17 [Qemu-devel] [PATCH][ARM] Wrong address for data/prefetch aborts in user mode Laurent Desnogues

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).