From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjVDj-0001bC-4Y for Qemu-devel@nongnu.org; Wed, 29 Oct 2014 11:31:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjVDc-00033X-Uh for Qemu-devel@nongnu.org; Wed, 29 Oct 2014 11:31:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjVDc-00033Q-Lt for Qemu-devel@nongnu.org; Wed, 29 Oct 2014 11:31:28 -0400 Message-ID: <54510848.3080004@redhat.com> Date: Wed, 29 Oct 2014 16:31:20 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <2753E2F1-FF07-467C-8DCC-569A5BCDA915@livius.net> <8B682701-7ECB-4741-917F-ABDFB5F576B9@livius.net> <5200B6C9-6E30-4B71-9DEB-42BBCD873FC9@livius.net> <0ECC542D-7CF1-4D17-B689-46DF4CCE8F7D@livius.net> <545103A7.203@redhat.com> <90E1040E-DDA8-47BC-8F52-2CF803E6D4C8@livius.net> In-Reply-To: <90E1040E-DDA8-47BC-8F52-2CF803E6D4C8@livius.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Better Cortex-M support? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liviu Ionescu Cc: Peter Maydell , QEMU Developers On 10/29/2014 04:18 PM, Liviu Ionescu wrote: > > On 29 Oct 2014, at 17:11, Paolo Bonzini wrote: > >> On 10/28/2014 03:40 PM, Peter Maydell wrote: >>> I think writes via gdb will be treated in the same way as >>> writes by the CPU (ie interpreted as attempts to program >>> the flash device). QEMU doesn't support a "debug access" >>> abstraction. >> >> I think they should work right. See cpu_memory_rw_debug. > > I'm not sure I can follow you. do you mean there is a recent patch that fixed this? > > otherwise, according to my tests, when the GDB session is active, the semihosting output is no longer displayed in the qemu console. That's due to usage of the breakpoint instruction, as Peter pointed out. I mean that writes to ROM or flash via gdb should modify the ROM directly, unlike writes by the CPU. Paolo