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
This commit is contained in:
balrog 2007-06-10 13:53:18 +00:00
parent c9bac22c7d
commit 7a774c875b

View File

@ -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);