path: root/ioport.c
diff options
authorPaolo Bonzini <pbonzini@redhat.com>2013-07-22 15:54:25 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2013-07-25 08:12:27 -0500
commitf36a6382b8fb9677fd542b9c59b1ea1ad40ee9cf (patch)
tree6f517756e6ed4e718cc009e510a56770b4693b1c /ioport.c
parent61fcb628627ea464dc1954f615ae13edfefd284f (diff)
Revert "ioport: remove LITTLE_ENDIAN mark for portio"
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 <pbonzini@redhat.com> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Message-id: 1374501278-31549-16-git-send-email-pbonzini@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'ioport.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/ioport.c b/ioport.c
index 89b17d69f4..79b7f1ae38 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,