3 patch to enable big-endian mips support from matt@netbsd.org
6 diff -rup src/devices/dev_gt.cc src/devices/dev_gt.cc
7 --- src/devices/dev_gt.cc 2009-06-21 09:03:48.000000000 -0700
8 +++ src/devices/dev_gt.cc 2009-11-12 11:55:32.000000000 -0800
9 @@ -172,19 +172,23 @@ DEVICE_ACCESS(gt)
12 case GT_PCI0_CFG_ADDR:
14 if (cpu->byte_order != EMUL_LITTLE_ENDIAN) {
15 fatal("[ gt: TODO: big endian PCI access ]\n");
19 bus_pci_decompose_1(idata, &bus, &dev, &func, ®);
20 bus_pci_setaddr(cpu, d->pci_data, bus, dev, func, reg);
23 case GT_PCI0_CFG_DATA:
25 if (cpu->byte_order != EMUL_LITTLE_ENDIAN) {
26 fatal("[ gt: TODO: big endian PCI access ]\n");
30 bus_pci_data_access(cpu, d->pci_data, writeflag == MEM_READ?
31 &odata : &idata, len, writeflag);