From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1GaF-00066D-N9 for qemu-devel@nongnu.org; Mon, 22 Jul 2013 09:55:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1GaE-00061n-7d for qemu-devel@nongnu.org; Mon, 22 Jul 2013 09:55:27 -0400 Received: from mail-ee0-x229.google.com ([2a00:1450:4013:c00::229]:35865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1GaE-00061h-1A for qemu-devel@nongnu.org; Mon, 22 Jul 2013 09:55:26 -0400 Received: by mail-ee0-f41.google.com with SMTP id d17so3809386eek.14 for ; Mon, 22 Jul 2013 06:55:25 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Mon, 22 Jul 2013 15:54:25 +0200 Message-Id: <1374501278-31549-16-git-send-email-pbonzini@redhat.com> In-Reply-To: <1374501278-31549-1-git-send-email-pbonzini@redhat.com> References: <1374501278-31549-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 15/28] Revert "ioport: remove LITTLE_ENDIAN mark for portio" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, aik@ozlabs.ru, agraf@suse.de, hpoussin@reactos.org, jan.kiszka@siemens.com, aurelien@aurel32.net This reverts commit c3cb8e77804313e1be99b5f28a34a346736707a5. The scenario where I/O ports are accessed with DEVICE_LITTLE_ENDIAN endianness now works and will soon be unit tested. Since the PortioList indirection assumes little endian, define portio_ops the same way. Signed-off-by: Paolo Bonzini --- ioport.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ioport.c b/ioport.c index 89b17d6..79b7f1a 100644 --- a/ioport.c +++ b/ioport.c @@ -183,6 +183,7 @@ static void portio_write(void *opaque, hwaddr addr, uint64_t data, static const MemoryRegionOps portio_ops = { .read = portio_read, .write = portio_write, + .endianness = DEVICE_LITTLE_ENDIAN, .valid.unaligned = true, .impl.unaligned = true, }; -- 1.8.1.4