From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsS5t-0001bi-D3 for qemu-devel@nongnu.org; Wed, 13 May 2015 04:32:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsS5q-0008N7-MC for qemu-devel@nongnu.org; Wed, 13 May 2015 04:32:45 -0400 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]:33263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsS5q-0008Mm-Et for qemu-devel@nongnu.org; Wed, 13 May 2015 04:32:42 -0400 Received: by wgin8 with SMTP id n8so35640218wgi.0 for ; Wed, 13 May 2015 01:32:41 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <55530C24.70207@redhat.com> Date: Wed, 13 May 2015 10:32:36 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <555243C8.30602@redhat.com> <16201.3286528692$1431500273@news.gmane.org> In-Reply-To: <16201.3286528692$1431500273@news.gmane.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] when does a target frontend need to use gen_io_start()/gen_io_end() ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Dovgaluk , 'Peter Maydell' , 'QEMU Developers' Cc: 'Richard Henderson' On 13/05/2015 08:57, Pavel Dovgaluk wrote: >> > It's any instruction that can cause an icount read, typically through >> > QEMU_CLOCK_VIRTUAL or cpu_get_ticks(). > Doesn't this mean that ARM has incorrect implementation of icount? > MMIO is common for this platform, but none of memory accesses are > surrounded with gen_io_start()/gen_io_end(). See here: if (mr != &io_mem_rom && mr != &io_mem_notdirty && !cpu_can_do_io(cpu)) { cpu_io_recompile(cpu, retaddr); } in softmmu_template.h. Paolo