From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxPNf-0002Mo-Tj for qemu-devel@nongnu.org; Thu, 11 Jul 2013 18:30:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxPNf-0002IL-0W for qemu-devel@nongnu.org; Thu, 11 Jul 2013 18:30:31 -0400 Message-ID: <1373581815.19894.108.camel@pasglop> From: Benjamin Herrenschmidt Date: Fri, 12 Jul 2013 08:30:15 +1000 In-Reply-To: <5D205309-1154-4730-902E-BF07F5D3B4EB@suse.de> References: <51C75FA6.6080903@reactos.org> <51C7E21A.9090005@web.de> <8A36D64D-0625-49E1-9E59-391DAEEBD1FC@suse.de> <51DEA91B.40903@suse.de> <3FAA7DE1-06A0-45C5-885C-0433BCC0CFE8@suse.de> <5D205309-1154-4730-902E-BF07F5D3B4EB@suse.de> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 11/14] ioport: Switch dispatching to memory core layer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Liu Ping Fan , qemu-devel Developers , "qemu-ppc@nongnu.org list:PowerPC" , Paolo Bonzini , Jan Kiszka , Andreas =?ISO-8859-1?Q?F=E4rber?= , =?ISO-8859-1?Q?Herv=E9?= Poussineau On Thu, 2013-07-11 at 15:28 +0200, Alexander Graf wrote: > So IIUC before cpu_inw and inl were doing portio accesses in host > native endianness. Now with this change they do little endian > accesses. All sensible callers of cpu_inX assume that data is passed > in native endianness though and already do the little endian > conversion themselves. > > Semantically having your PCI host bridge do the endianness conversion > is the correct way of handling it, as that's where the conversion > happens. If it makes life easier to do it in the isa bridging code, > that's fine for me too though. But then we'll have to get rid of all > endianness swaps that already happen in PCI bridges. Or stop being utterly insane and remove all that endianness crap in bridges etc... :-) The whole thing is completely ass backward to begin with. Cheers, Ben.