mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
qom: Tidy up a few object_initialize_child() calls
The callers of object_initialize_child() commonly pass either &child, sizeof(child), or pchild, sizeof(*pchild). Tidy up the few that don't, mostly to keep the next commit simpler. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200610053247.1583243-36-armbru@redhat.com>
This commit is contained in:
parent
cd9ae806cd
commit
19dc7e977c
4 changed files with 4 additions and 5 deletions
|
@ -46,7 +46,7 @@ static void riscv_hart_realize(RISCVHartArrayState *s, int idx,
|
|||
Error *err = NULL;
|
||||
|
||||
object_initialize_child(OBJECT(s), "harts[*]", &s->harts[idx],
|
||||
sizeof(RISCVCPU), cpu_type,
|
||||
sizeof(s->harts[idx]), cpu_type,
|
||||
&error_abort, NULL);
|
||||
s->harts[idx].env.mhartid = s->hartid_base + idx;
|
||||
qemu_register_reset(riscv_harts_cpu_reset, &s->harts[idx]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue