From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXBHu-0006qC-Ec for qemu-devel@nongnu.org; Wed, 02 Sep 2015 12:53:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXBHp-0001fD-IW for qemu-devel@nongnu.org; Wed, 02 Sep 2015 12:53:30 -0400 Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:34847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXBHp-0001f3-AC for qemu-devel@nongnu.org; Wed, 02 Sep 2015 12:53:25 -0400 Received: by lagj9 with SMTP id j9so11585353lag.2 for ; Wed, 02 Sep 2015 09:53:24 -0700 (PDT) References: <55DB560D.5060108@gmail.com> From: Sergey Fedorov Message-ID: <55E72981.3050808@gmail.com> Date: Wed, 2 Sep 2015 19:53:21 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] ARM softmmu breakpoint misbehavior List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On 28.08.2015 22:21, Peter Maydell wrote: > The watchpoint code has a chance of cpu_resume_from_signal > doing the right thing, because we really did have the > code to do the load/store. However I have a feeling this > won't interact properly with the fact that ARM needs > BP_STOP_BEFORE_ACCESS on its watchpoints (unlike x86, which > is where I was looking at when I wrote the ARM wp handling > code.) So we may well be broken there as well in the > case where check_watchpoints() returns false. You are right. The same problem with watchpoints. Here is a small test for this: .text .global _start _start: adr x0, wp msr dbgwvr0_el1, x0 mov x0, #1 orr x0, x0, #(3 << 3) orr x0, x0, #(0xff << 5) msr dbgwcr0_el1, x0 ldr x0, wp wfi b . .data .balign 64 wp: .quad 0