mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
qom: Add TYPE_CONTAINER macro
Provide a macro for the container type across QEMU source tree, rather than hard code it every time. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-ID: <20241121192202.4155849-2-peterx@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
678bf8f22a
commit
e469b331cd
4 changed files with 6 additions and 5 deletions
|
@ -1053,7 +1053,7 @@ static void stellaris_init(MachineState *ms, stellaris_board_info *board)
|
|||
flash_size = (((board->dc0 & 0xffff) + 1) << 1) * 1024;
|
||||
sram_size = ((board->dc0 >> 18) + 1) * 1024;
|
||||
|
||||
soc_container = object_new("container");
|
||||
soc_container = object_new(TYPE_CONTAINER);
|
||||
object_property_add_child(OBJECT(ms), "soc", soc_container);
|
||||
|
||||
/* Flash programming is done via the SCU, so pretend it is ROM. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue