[prev in list] [next in list] [prev in thread] [next in thread]
List: qemu-ppc
Subject: Re: [PATCH v2 12/15] hw/display/sm501: Unify common QOM properties
From: BALATON Zoltan <balaton () eik ! bme ! hu>
Date: 2023-02-27 17:01:35
Message-ID: b006d7e3-22fb-54cf-d05e-45f15457032f () eik ! bme ! hu
[Download RAW message or body]
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(),
>> -};
>
>
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic