qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] ARM: ldrex/strex only valid v6
@ 2008-05-25  9:51 Adam Lackorzynski
  2008-05-25 11:18 ` Laurent Desnogues
  0 siblings, 1 reply; 3+ messages in thread
From: Adam Lackorzynski @ 2008-05-25  9:51 UTC (permalink / raw)
  To: qemu-devel

Hi,

ldrex and strex are only valid instructions for v6 and up.


Index: target-arm/translate.c
===================================================================
--- target-arm/translate.c	(revision 4571)
+++ target-arm/translate.c	(working copy)
@@ -6221,6 +6221,7 @@
                     rd = (insn >> 12) & 0xf;
                     if (insn & (1 << 23)) {
                         /* load/store exclusive */
+                        ARCH(6);
                         gen_movl_T1_reg(s, rn);
                         addr = cpu_T[1];
                         if (insn & (1 << 20)) {

Adam
-- 
Adam                 adam@os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/

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

end of thread, other threads:[~2008-05-26  7:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-25  9:51 [Qemu-devel] [PATCH] ARM: ldrex/strex only valid v6 Adam Lackorzynski
2008-05-25 11:18 ` Laurent Desnogues
2008-05-26  7:54   ` Adam Lackorzynski

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