On 6/6/22 19:02, Peter Maydell wrote:
On Mon, 6 Jun 2022 at 16:37, Cédric Le Goater <c...@kaod.org> wrote:
On the CPU topic, I think we will need to change the GIC device
to stop using qemu_get_cpu() in the CPU interface init routine
and in the GIC realize routine, since this is global to the machine.
I am having the same problem when trying to model a multi SoC board
with a GIC device on each chip.

What would be a good approach to loop only on the CPUs related
to a GIC device ? Could we tag the CPUs and the GIC in some way
to filter the unrelated CPUs ? Or pass a CPU list to the GIC
device ?

GICv2 or GICv3 ?

v3 yes. sorry.

Guessing GICv3, I think probably the right approach is to
have the GICv3 device have an array of QOM link properties,
and then the SoC or board code links up the CPUs to the
GIC device object.

I will look at this.

Thanks,

C.

Reply via email to