OSDN Git Service

hw/m68k/mcf5206: Pass CPU using QOM link property
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 24 Oct 2023 08:30:05 +0000 (10:30 +0200)
committerThomas Huth <huth@tuxfamily.org>
Wed, 1 Nov 2023 06:20:34 +0000 (07:20 +0100)
commit989c8a46cc9ec211b94c4dfa0f8fd8662ab697da
tree8f02871af52c8db2adc6a64fc092557c0e35ea8e
parentb8fc6195504dfeca2d283f356e7c13a6fd391acb
hw/m68k/mcf5206: Pass CPU using QOM link property

Avoid the interrupt controller directly access the first cpu via
the qemu_get_cpu() call. Pass it as argument to mcf5206_init()
from the board code.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231024083010.12453-3-philmd@linaro.org>
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
hw/m68k/an5206.c
hw/m68k/mcf5206.c