[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 02/15] hw/pci-host/q35: Fix double, contradicting .endianness
From: |
Igor Mammedov |
Subject: |
Re: [PATCH 02/15] hw/pci-host/q35: Fix double, contradicting .endianness assignment |
Date: |
Mon, 12 Jun 2023 15:01:54 +0200 |
On Sun, 11 Jun 2023 12:33:59 +0200
Bernhard Beschow <shentey@gmail.com> wrote:
> Fixes the following clangd warning (-Winitializer-overrides):
>
> q35.c:297:19: Initializer overrides prior initialization of this subobject
> q35.c:292:19: previous initialization is here
>
> Settle on native endian which causes the least overhead.
indeed it doesn't matter which way we read all ones, so that should work.
but does it really matter (I mean the overhead/what workload)?
If not, I'd prefer explicit LE as it's now to be consistent
the the rest of memops on Q35.
>
> Fixes: bafc90bdc594 ("q35: implement TSEG")
> 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 fd18920e7f..859c197f25 100644
> --- a/hw/pci-host/q35.c
> +++ b/hw/pci-host/q35.c
> @@ -290,7 +290,6 @@ static const MemoryRegionOps blackhole_ops = {
> .valid.max_access_size = 4,
> .impl.min_access_size = 4,
> .impl.max_access_size = 4,
> - .endianness = DEVICE_LITTLE_ENDIAN,
> };
>
> /* PCIe MMCFG */
- [PATCH 00/15] Q35 and I440FX host bridge QOM cleanup, Bernhard Beschow, 2023/06/11
- [PATCH 01/15] hw/i386/pc_q35: Resolve redundant q35_host variable, Bernhard Beschow, 2023/06/11
- [PATCH 02/15] hw/pci-host/q35: Fix double, contradicting .endianness assignment, Bernhard Beschow, 2023/06/11
- Re: [PATCH 02/15] hw/pci-host/q35: Fix double, contradicting .endianness assignment,
Igor Mammedov <=
- Re: [PATCH 02/15] hw/pci-host/q35: Fix double, contradicting .endianness assignment, Bernhard Beschow, 2023/06/13
- Re: [PATCH 02/15] hw/pci-host/q35: Fix double, contradicting .endianness assignment, Michael S. Tsirkin, 2023/06/13
- Re: [PATCH 02/15] hw/pci-host/q35: Fix double, contradicting .endianness assignment, BALATON Zoltan, 2023/06/13
- Re: [PATCH 02/15] hw/pci-host/q35: Fix double, contradicting .endianness assignment, Igor Mammedov, 2023/06/13
- Re: [PATCH 02/15] hw/pci-host/q35: Fix double, contradicting .endianness assignment, Philippe Mathieu-Daudé, 2023/06/13
- Re: [PATCH 02/15] hw/pci-host/q35: Fix double, contradicting .endianness assignment, Michael S. Tsirkin, 2023/06/13
- Re: [PATCH 02/15] hw/pci-host/q35: Fix double, contradicting .endianness assignment, Bernhard Beschow, 2023/06/13
[PATCH 03/15] hw/pci-host/q35: Initialize PCMachineState::bus in board code, Bernhard Beschow, 2023/06/11