diff options
Diffstat (limited to 'src/devices/machine/lpci.cpp')
-rw-r--r-- | src/devices/machine/lpci.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/machine/lpci.cpp b/src/devices/machine/lpci.cpp index 171f9c6ff8e..fdbdc218b31 100644 --- a/src/devices/machine/lpci.cpp +++ b/src/devices/machine/lpci.cpp @@ -205,18 +205,18 @@ WRITE32_MEMBER( pci_bus_legacy_device::write ) READ64_MEMBER(pci_bus_legacy_device::read_64be) { uint64_t result = 0; - mem_mask = flipendian_int64(mem_mask); + mem_mask = swapendian_int64(mem_mask); if (ACCESSING_BITS_0_31) result |= (uint64_t)read(space, offset * 2 + 0, mem_mask >> 0) << 0; if (ACCESSING_BITS_32_63) result |= (uint64_t)read(space, offset * 2 + 1, mem_mask >> 32) << 32; - return flipendian_int64(result); + return swapendian_int64(result); } WRITE64_MEMBER(pci_bus_legacy_device::write_64be) { - data = flipendian_int64(data); - mem_mask = flipendian_int64(mem_mask); + data = swapendian_int64(data); + mem_mask = swapendian_int64(mem_mask); if (ACCESSING_BITS_0_31) write(space, offset * 2 + 0, data >> 0, mem_mask >> 0); if (ACCESSING_BITS_32_63) |