qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH v2 3/5] hw/sun4m: Move QEMUMachine structs into


From: Blue Swirl
Subject: [Qemu-devel] Re: [PATCH v2 3/5] hw/sun4m: Move QEMUMachine structs into sun4*_hwdef structs
Date: Mon, 28 Mar 2011 20:58:47 +0300

On Mon, Mar 28, 2011 at 8:36 PM, Peter Maydell <address@hidden> wrote:
> On 28 March 2011 18:31, Blue Swirl <address@hidden> wrote:
>> On Mon, Mar 28, 2011 at 4:44 PM, Peter Maydell <address@hidden> wrote:
>>> Combine the per-machine QEMUMachine struct into the per-machine
>>> sun4*_hwdef struct. This requires some moving around of init functions
>>> to avoid forward references. We also have to move the 'const'
>>> attribute from the whole sun4*_hwdef[] array to the individual fields
>>> of the structure, because QEMUMachine is not const.
>>
>> Maybe QEMUMachine should be made const instead? The data does not ever
>> need to change.
>
> I thought about that, but we need to fill in the 'next' links when
> we do qemu_register_device().

The list could be kept separate from the structure.

> (vl.c also sets machine->max_cpus if it wasn't set. I don't think
> anything else modifies QEMUMachine structure fields.)

The lines after that could be changed so that machine->max_cpus is not
changed. It's not used afterwards.



reply via email to

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