qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH-for-6.1 0/3] hw/sparc/sun4m: Introduce Sun4mMachineClass to a


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH-for-6.1 0/3] hw/sparc/sun4m: Introduce Sun4mMachineClass to access sun4m_hwdefs
Date: Sun, 2 May 2021 19:40:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 5/2/21 1:20 PM, Mark Cave-Ayland wrote:
> On 07/04/2021 18:53, Philippe Mathieu-Daudé wrote:
> 
>> Hi Mark,
>>
>> This series QOM'ify a bit more the sun4m machines.
>> I need it for a further memory maxsize check.
>> It is mostly code movement (and the diff-stat is good).
>>
>> Philippe Mathieu-Daudé (3):
>>    hw/sparc/sun4m: Introduce TYPE_SUN4M_MACHINE and Sun4mMachineClass
>>    hw/sparc/sun4m: Factor out sun4m_machine_class_common_init()
>>    hw/sparc/sun4m: Make sun4m_hwdefs a Sun4mMachineClass field
>>
>>   hw/sparc/sun4m.c | 178 ++++++++++++++++++-----------------------------
>>   1 file changed, 69 insertions(+), 109 deletions(-)
> 
> Hi Phil,
> 
> Possibly it might be worth having an abstract TYPE_SUN4M_MACHINE and
> then for each sun4m machine to have that as a parent type?

This is what this series does...

> This would
> allow you to move sun4m_machine_class_common_init() directly into the
> abstract sun4m_machine_class_init() rather than having to call a
> function from within each individual class init function.

OK, can do that.

Regards,

Phil.



reply via email to

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