diff options
| author | Thomas Huth | 2018-07-16 14:59:19 +0200 |
|---|---|---|
| committer | Peter Maydell | 2018-07-17 14:12:49 +0200 |
| commit | 046f370fb44172a34e54e341e7aeca4405af67a1 (patch) | |
| tree | fe366e5afbc789b872ff44c8ef94bf783b7f0082 /scripts/git.orderfile | |
| parent | qom/object: Add a new function object_initialize_child() (diff) | |
| download | qemu-046f370fb44172a34e54e341e7aeca4405af67a1.tar.gz qemu-046f370fb44172a34e54e341e7aeca4405af67a1.tar.xz qemu-046f370fb44172a34e54e341e7aeca4405af67a1.zip | |
hw/core/sysbus: Add a function for creating and attaching an object
A lot of functions are initializing an object and attach it immediately
afterwards to the system bus. Provide a common function for this, which
also uses object_initialize_child() to make sure that the reference
counter is correctly initialized to 1 afterwards.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 1531745974-17187-3-git-send-email-thuth@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts/git.orderfile')
0 files changed, 0 insertions, 0 deletions
