Received: from eggs.gnu.org ([140.186.70.92]:52776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcPii-0001pJ-1t for qemu-devel@nongnu.org; Thu, 30 Jun 2011 18:28:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcPig-0001J3-GO for qemu-devel@nongnu.org; Thu, 30 Jun 2011 18:28:23 -0400 Received: from cantor2.suse.de ([195.135.220.15]:50778 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcPig-0001Iw-4f for qemu-devel@nongnu.org; Thu, 30 Jun 2011 18:28:22 -0400 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <20110630172345.36994f31@schlenkerla.am.freescale.net> Date: Fri, 1 Jul 2011 00:28:19 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1309180555-3942-1-git-send-email-chouteau@adacore.com> <20110627112807.22346e82@schlenkerla.am.freescale.net> <4E098E23.3040605@adacore.com> <20110628112008.31cf6237@schlenkerla.am.freescale.net> <4E0C32FB.40302@adacore.com> <20110630111745.7c544a06@schlenkerla.am.freescale.net> <86AF921C-3FD1-409A-ACFD-EEEA23BBE130@suse.de> <20110630164630.2bd57166@schlenkerla.am.freescale.net> <10F3D94F-5B79-4041-BFE7-58681B7E89CB@suse.de> <20110630171147.76eef3fc@schlenkerla.am.freescale.net> <9B335790-A8DA-4545-8746-F66B1B258FBF@suse.de> <20110630172345.36994f31@schlenkerla.am.freescale.net> Subject: Re: [Qemu-devel] [PATCH] Add e500 instructions dcblc, dcbtls and dcbtstl as no-op List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Scott Wood Cc: qemu-devel@nongnu.org, Fabien Chouteau On 01.07.2011, at 00:23, Scott Wood wrote: > On Fri, 1 Jul 2011 00:18:22 +0200 > Alexander Graf wrote: >=20 >>=20 >> On 01.07.2011, at 00:11, Scott Wood wrote: >>=20 >>> Almost, but what if we have write permission but not read? >>=20 >> How would you write back data from a cache line when you haven't read = it earlier? >=20 > The CPU can read it. The program can't. Hrm. We can always just call the check manually and trigger the = respective interrupt :). >>> but what about a race with DMA from the I/O thread? >>=20 >> That'd simply be broken, but I don't quite see how it wouldn't with = real hardware either :). >=20 > Real hardware doesn't generate a load/store sequence that the program = didn't > ask for -- where's the breakage? Real hardware flushes whatever contents are in that cache line to RAM, = no? So it would collide with the DMA just as much. Or am I missing = something? Alex