Ticket #40722: qemu.diff
File qemu.diff, 2.5 KB (added by yanjingfeng@…, 11 years ago) |
---|
-
Portfile
4 4 5 5 name qemu 6 6 version 1.6.0 7 revision 4 7 8 categories emulators 8 9 license GPL-2+ 9 10 platforms darwin … … 22 23 checksums rmd160 e9cd36df6cba757a37dd34b7889f3190e7b6f222 \ 23 24 sha256 3132e58ada26d43b6924e8c2f07db80aa1e5022f3dcf03dee7d8bb9194b2cb48 24 25 25 patchfiles patch-configure.diff 26 patchfiles patch-configure.diff \ 27 patch-cpu-exec-c.diff \ 28 patch-hw-net-pcnet-pci-c.diff 26 29 27 30 depends_build port:texinfo \ 28 31 port:libtool \ -
files/patch-cpu-exec-c.diff
1 --- cpu-exec.c.orig 2013-10-10 00:30:30.000000000 -0400 2 +++ cpu-exec.c 2013-10-10 00:32:37.000000000 -0400 3 @@ -681,6 +681,10 @@ 4 * local variables as longjmp is marked 'noreturn'. */ 5 cpu = current_cpu; 6 env = cpu->env_ptr; 7 +#if !(defined(CONFIG_USER_ONLY) && \ 8 + (defined(TARGET_M68K) || defined(TARGET_PPC) || defined(TARGET_S390X))) 9 + cc = CPU_GET_CLASS(cpu); 10 +#endif 11 } 12 } /* for(;;) */ 13 -
files/patch-hw-net-pcnet-pci-c.diff
1 --- hw/net/pcnet-pci.c.orig 2013-10-10 00:24:48.000000000 -0400 2 +++ hw/net/pcnet-pci.c 2013-10-10 00:26:17.000000000 -0400 3 @@ -134,7 +134,7 @@ 4 static const MemoryRegionOps pcnet_io_ops = { 5 .read = pcnet_ioport_read, 6 .write = pcnet_ioport_write, 7 - .endianness = DEVICE_NATIVE_ENDIAN, 8 + .endianness = DEVICE_LITTLE_ENDIAN, 9 }; 10 11 static void pcnet_mmio_writeb(void *opaque, hwaddr addr, uint32_t val) 12 @@ -256,7 +256,7 @@ 13 .read = { pcnet_mmio_readb, pcnet_mmio_readw, pcnet_mmio_readl }, 14 .write = { pcnet_mmio_writeb, pcnet_mmio_writew, pcnet_mmio_writel }, 15 }, 16 - .endianness = DEVICE_NATIVE_ENDIAN, 17 + .endianness = DEVICE_LITTLE_ENDIAN, 18 }; 19 20 static void pci_physical_memory_write(void *dma_opaque, hwaddr addr,