virtio fix cfg endian-ness for BE targets
commit1e40356ce5f6ccfa0bb57104a533c62952c560ce
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 5 Jul 2015 13:08:09 +0000 (5 15:08 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 8 Jul 2015 09:37:08 +0000 (8 12:37 +0300)
treebb570c9eb2d9a429dfca9ff56fdb70a68ae60792
parentada434cd0b44ce984318621e4bb79e067360d737
virtio fix cfg endian-ness for BE targets

address_space_rw assumes data is in target format
and byte-swaps it if target is BE and device is LE.
Use fixed-endian LE APIs instead.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c