Commit 7a774c87 authored by balrog's avatar balrog
Browse files

Use the same offset for all STR and STM instructions that store r15, as...

Use the same offset for all STR and STM instructions that store r15, as specified in ARM ARM (patch from Chris McNett).


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2970 c046a42c-6fe2-441c-8c8c-71466251a162
parent c9bac22c
......@@ -2837,8 +2837,8 @@ static void disas_arm_insn(CPUState * env, DisasContext *s)
} else {
/* store */
if (i == 15) {
/* special case: r15 = PC + 12 */
val = (long)s->pc + 8;
/* special case: r15 = PC + 8 */
val = (long)s->pc + 4;
gen_op_movl_TN_im[0](val);
} else if (user) {
gen_op_movl_T0_user(i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment