quick fix for ARMv7 "mov pc, <xxx>" commands
authorJuha Riihimäki <juhriihi@esdhcp039194.research.nokia.com>
Thu, 12 Mar 2009 13:14:38 +0000 (15:14 +0200)
committerJuha Riihimäki <juhriihi@esdhcp039194.research.nokia.com>
Thu, 12 Mar 2009 13:14:38 +0000 (15:14 +0200)
commit719acbcebb6846f34a0414244febe94526fed734
treef214487711a0d12db8dbd3884de42cd758e522a3
parentd3daea28a1e7af1810a979a2e775927e927dba65
quick fix for ARMv7 "mov pc, <xxx>" commands

QEMU does not currently emulate the load/move operations to R15 (PC) correctly for ARMv7. Correct behavior is similar to BX command. This patch fixes the behavior for the special case of "mov<cond> pc, <rm>", "mov<cond> pc, #<const>", "mov<cond> pc, <rm>, <shift>". Other commands (such as "ldr pc, ..." for example) are not fixed.
target-arm/translate.c