diff options
author | nox <nox@FreeBSD.org> | 2013-09-06 01:39:25 +0800 |
---|---|---|
committer | nox <nox@FreeBSD.org> | 2013-09-06 01:39:25 +0800 |
commit | f3f10c3758bbae25e03ee929d2c078856da81b08 (patch) | |
tree | a0db012eb69bdee5d21fa8f0c5a8ff38a4be5549 /emulators/qemu-devel | |
parent | a4613d621182fa8aba50dcd9e24f5e9577403350 (diff) | |
download | freebsd-ports-gnome-f3f10c3758bbae25e03ee929d2c078856da81b08.tar.gz freebsd-ports-gnome-f3f10c3758bbae25e03ee929d2c078856da81b08.tar.zst freebsd-ports-gnome-f3f10c3758bbae25e03ee929d2c078856da81b08.zip |
- Add patch to fix pcnet-pci NIC big endian guests like MIPS Malta: [1]
http://lists.nongnu.org/archive/html/qemu-stable/2013-08/msg00217.html
See also gonzo's blog post:
http://kernelnomicon.org/?p=401
- Bump PORTREVISION.
Submitted by: gonzo (via irc) [1]
Obtained from: qemu upstream [1]
Diffstat (limited to 'emulators/qemu-devel')
-rw-r--r-- | emulators/qemu-devel/Makefile | 1 | ||||
-rw-r--r-- | emulators/qemu-devel/files/patch-hw-net-pcnet-pci.c | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/emulators/qemu-devel/Makefile b/emulators/qemu-devel/Makefile index 8017d281e739..48a84097ee2b 100644 --- a/emulators/qemu-devel/Makefile +++ b/emulators/qemu-devel/Makefile @@ -3,6 +3,7 @@ PORTNAME= qemu PORTVERSION= 1.6.0 +PORTREVISION= 1 CATEGORIES= emulators MASTER_SITES= http://wiki.qemu.org/download/:release \ LOCAL/nox:snapshot diff --git a/emulators/qemu-devel/files/patch-hw-net-pcnet-pci.c b/emulators/qemu-devel/files/patch-hw-net-pcnet-pci.c new file mode 100644 index 000000000000..c8be3f88778a --- /dev/null +++ b/emulators/qemu-devel/files/patch-hw-net-pcnet-pci.c @@ -0,0 +1,48 @@ +From: aurelien@aurel32.net (Aurelien Jarno) +Subject: [Qemu-devel] [PATCH] pcnet-pci: mark I/O and MMIO as LITTLE_ENDIAN +Date: Wed, 28 Aug 2013 14:17:39 +0200 +Message-ID: <1377692259-19959-1-git-send-email-aurelien@aurel32.net> +To: qemu-devel@nongnu.org +Cc: Paolo Bonzini <pbonzini@redhat.com>, qemu-stable@nongnu.org, + Aurelien Jarno <aurelien@aurel32.net> + +Now that the memory subsystem is propagating the endianness correctly, +the pcnet-pci device should have its I/O ports and MMIO memory marked +as LITTLE_ENDIAN, as PCI devices are little endian. + +This makes the pcnet-pci NIC to work again on big endian MIPS Malta +(default NIC). + +Cc: qemu-stable@nongnu.org +Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> +--- + hw/net/pcnet-pci.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/hw/net/pcnet-pci.c b/hw/net/pcnet-pci.c +index a893165..865f2f0 100644 +--- a/hw/net/pcnet-pci.c ++++ b/hw/net/pcnet-pci.c +@@ -134,7 +134,7 @@ static void pcnet_ioport_write(void *opaque, hwaddr addr, + static const MemoryRegionOps pcnet_io_ops = { + .read = pcnet_ioport_read, + .write = pcnet_ioport_write, +- .endianness = DEVICE_NATIVE_ENDIAN, ++ .endianness = DEVICE_LITTLE_ENDIAN, + }; + + static void pcnet_mmio_writeb(void *opaque, hwaddr addr, uint32_t val) +@@ -256,7 +256,7 @@ static const MemoryRegionOps pcnet_mmio_ops = { + .read = { pcnet_mmio_readb, pcnet_mmio_readw, pcnet_mmio_readl }, + .write = { pcnet_mmio_writeb, pcnet_mmio_writew, pcnet_mmio_writel }, + }, +- .endianness = DEVICE_NATIVE_ENDIAN, ++ .endianness = DEVICE_LITTLE_ENDIAN, + }; + + static void pci_physical_memory_write(void *dma_opaque, hwaddr addr, +-- +1.7.10.4 + + + |