Re: [PATCH v2 1/2] hw/pci-host/gt64120: Fix PCI I/O config register endianness

2023-01-18 Thread Philippe Mathieu-Daudé
On 18/1/23 10:57, Philippe Mathieu-Daudé wrote: The MByteSwap bit only affects the data register endianness, not the config register. Map the config register once in the gt64120_realize() handler, and only remap the data register when the mapping is updated. Fixes: 145e2198d7 ("gt64xxx:

[PATCH v2 1/2] hw/pci-host/gt64120: Fix PCI I/O config register endianness

2023-01-18 Thread Philippe Mathieu-Daudé
The MByteSwap bit only affects the data register endianness, not the config register. Map the config register once in the gt64120_realize() handler, and only remap the data register when the mapping is updated. Fixes: 145e2198d7 ("gt64xxx: Endian-swap using PCI_HOST_BRIDGE MemoryRegionOps")