Message ID | 20230214131441.101760-3-shentey@gmail.com |
---|---|
State | New |
Headers | show |
Series | Q35 PCI host fixes and QOM cleanup | expand |
On Tue, Feb 14, 2023 at 02:14:31PM +0100, Bernhard Beschow wrote: > Settle on little endian which is consistent with using > pci_host_conf_le_ops. > > Fixes: bafc90bdc594 'q35: implement TSEG' incorrect formatting for the fixes tag > Signed-off-by: Bernhard Beschow <shentey@gmail.com> > --- > hw/pci-host/q35.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c > index 83f2a98c71..3124cad60f 100644 > --- a/hw/pci-host/q35.c > +++ b/hw/pci-host/q35.c > @@ -289,7 +289,6 @@ static void blackhole_write(void *opaque, hwaddr addr, uint64_t val, > static const MemoryRegionOps blackhole_ops = { > .read = blackhole_read, > .write = blackhole_write, > - .endianness = DEVICE_NATIVE_ENDIAN, > .valid.min_access_size = 1, > .valid.max_access_size = 4, > .impl.min_access_size = 4, > -- > 2.39.1
On Tue, Feb 14, 2023 at 02:14:31PM +0100, Bernhard Beschow wrote: > Settle on little endian which is consistent with using > pci_host_conf_le_ops. > > Fixes: bafc90bdc594 'q35: implement TSEG' > Signed-off-by: Bernhard Beschow <shentey@gmail.com> I think it's native because native is a bit cheaper and it's just 0xffffffff anyway. Why change? A comment would be a good idea though. > --- > hw/pci-host/q35.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c > index 83f2a98c71..3124cad60f 100644 > --- a/hw/pci-host/q35.c > +++ b/hw/pci-host/q35.c > @@ -289,7 +289,6 @@ static void blackhole_write(void *opaque, hwaddr addr, uint64_t val, > static const MemoryRegionOps blackhole_ops = { > .read = blackhole_read, > .write = blackhole_write, > - .endianness = DEVICE_NATIVE_ENDIAN, > .valid.min_access_size = 1, > .valid.max_access_size = 4, > .impl.min_access_size = 4, > -- > 2.39.1
diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c index 83f2a98c71..3124cad60f 100644 --- a/hw/pci-host/q35.c +++ b/hw/pci-host/q35.c @@ -289,7 +289,6 @@ static void blackhole_write(void *opaque, hwaddr addr, uint64_t val, static const MemoryRegionOps blackhole_ops = { .read = blackhole_read, .write = blackhole_write, - .endianness = DEVICE_NATIVE_ENDIAN, .valid.min_access_size = 1, .valid.max_access_size = 4, .impl.min_access_size = 4,
Settle on little endian which is consistent with using pci_host_conf_le_ops. Fixes: bafc90bdc594 'q35: implement TSEG' Signed-off-by: Bernhard Beschow <shentey@gmail.com> --- hw/pci-host/q35.c | 1 - 1 file changed, 1 deletion(-)