From patchwork Fri Mar 25 10:54:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: ARM: BKPT instructions should raise prefetch aborts with IFSR type 00010 Date: Fri, 25 Mar 2011 00:54:23 -0000 From: Alex Zuepke X-Patchwork-Id: 88367 Message-Id: <4D8C745F.2000304@sysgo.com> To: qemu-devel@nongnu.org Hi, while digging through some problems with BKPT exceptions on ARM, I discovered that QEMU does not update IFSR on prefetch aborts. This should be done since ARMv6 according to ARM docs. Please include. Best Regards, Alex target-arm: BKPT instructions should raise prefetch aborts with IFSR type 00010 diff against qemu 0.14.0 Signed-off-by: Alex Zuepke --- qemu-0.14.0.orig/target-arm/translate.c 2011-02-16 15:44:05.000000000 +0100 +++ qemu-0.14.0/target-arm/translate.c 2011-03-25 11:22:03.000000000 +0100 @@ -6389,6 +6389,7 @@ goto illegal_op; } /* bkpt */ + env->cp15.c5_insn = 2; gen_exception_insn(s, 4, EXCP_BKPT); break; case 0x8: /* signed multiply */ @@ -8930,6 +8931,7 @@ break; case 0xe: /* bkpt */ + env->cp15.c5_insn = 2; gen_exception_insn(s, 2, EXCP_BKPT); break;