qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 12/15] hw/display/sm501: Unify common QOM properties


From: BALATON Zoltan
Subject: Re: [PATCH v2 12/15] hw/display/sm501: Unify common QOM properties
Date: Mon, 27 Feb 2023 18:01:35 +0100 (CET)

On Mon, 27 Feb 2023, Philippe Mathieu-Daudé wrote:
On 3/2/23 15:55, Philippe Mathieu-Daudé wrote:
Since now PCI and SysBus properties are identical, unify them.

Suggested-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  hw/display/sm501.c | 11 +++--------
  1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/hw/display/sm501.c b/hw/display/sm501.c
index efebd93f1e..98375138b2 100644
--- a/hw/display/sm501.c
+++ b/hw/display/sm501.c
@@ -1975,7 +1975,7 @@ static void sm501_realize_sysbus(DeviceState *dev, Error **errp)
      /* TODO : chain irq to IRL */
  }
  -static Property sm501_sysbus_properties[] = {
+static Property sm501_common_properties[] = {
      DEFINE_PROP_UINT32("vram-size", SM501SysBusState, vram_size, 0),
      DEFINE_PROP_END_OF_LIST(),
  };


@@ -2062,11 +2062,6 @@ static void sm501_realize_pci(PCIDevice *dev, Error **errp)
                       &s->state.mmio_region);
  }
  -static Property sm501_pci_properties[] = {
-    DEFINE_PROP_UINT32("vram-size", SM501PCIState, vram_size, 64 * MiB),

Oops, indeed the defaults are different so maybe just drop this patch for now.

Regards,
BALATON Zoltan


Patch is invalid:

$ ./qemu-system-ppc -S -M sam460ex
qemu-system-ppc: Invalid VRAM size, nearest valid size is 2097152

-    DEFINE_PROP_END_OF_LIST(),
-};




reply via email to

[Prev in Thread] Current Thread [Next in Thread]