virtio: fix PCI accesses for ppc64 in legacy mode
authorDavid Marchand <david.marchand@6wind.com>
Tue, 17 May 2016 09:59:51 +0000 (11:59 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 15 Jun 2016 17:06:53 +0000 (19:06 +0200)
commit281ccccb1a867f48beb6d357fdd73c4949c90121
tree08f38a03b4d8102a73d5ab020fd7211746e2df94
parent24e718b4e1039be3c28a93dd17b0f1c825eb82ae
virtio: fix PCI accesses for ppc64 in legacy mode

Although ppc supports both endianesses, qemu supposes that the cpu is
big endian and enforces this for the virtio-net stuff.

Fix PCI accesses in legacy mode. Only ppc64le is supported at the moment.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
drivers/net/virtio/virtio_pci.c