Qemu-arm is wrongly executing post-indexed loads when Rm and Rd are
the same register. For example:

ldr r0, [r1], +r0

Current behavior:
r0 <- [r1]
r1 <- r1 + r0

Expected behavior:
addr <- r1
r1 <- r1 + r0
r0 <- [addr]

The attached patch fixes this bug. Patched by me and Rodrigo Vivi.
This patch was made based on qemu 0.9.


Lauro Venancio



_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to