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: Mark Cave-Ayland
Subject: Re: [PATCH-for-6.1 0/3] hw/sparc/sun4m: Introduce Sun4mMachineClass to access sun4m_hwdefs
Date: Sun, 2 May 2021 12:20:06 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0

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 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.

No objection to the cleanup though :)


ATB,

Mark.



reply via email to

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