qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH][ARM] Fix wrong destination register for smuad, smusd, smlad, smlsd
@ 2008-06-23  9:40 Laurent Desnogues
  2008-06-25 15:25 ` [Qemu-devel] " Laurent Desnogues
  0 siblings, 1 reply; 7+ messages in thread
From: Laurent Desnogues @ 2008-06-23  9:40 UTC (permalink / raw)
  To: qemu-devel

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

smuad, smusd, smlad, smlsd write the wrong register, resulting in
PC corruption.


Laurent

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

--- svn-ref/target-arm/translate.c	2008-06-09 08:52:48.000000000 +0200
+++ svn/target-arm/translate.c	2008-06-23 11:25:40.000000000 +0200
@@ -6508,7 +6508,7 @@
                                 gen_helper_add_setq(tmp, tmp, tmp2);
                                 dead_tmp(tmp2);
                               }
-                            store_reg(s, rd, tmp);
+                            store_reg(s, rn, tmp);
                         }
                     }
                     break;

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

end of thread, other threads:[~2008-06-25 19:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-23  9:40 [Qemu-devel] [PATCH][ARM] Fix wrong destination register for smuad, smusd, smlad, smlsd Laurent Desnogues
2008-06-25 15:25 ` [Qemu-devel] " Laurent Desnogues
2008-06-25 16:58   ` Paul Brook
2008-06-25 17:15     ` Laurent Desnogues
2008-06-25 17:27       ` Paul Brook
2008-06-25 19:00         ` Laurent Desnogues
2008-06-25 19:11         ` Vincent Palatin

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