Home
last modified time | relevance | path

Searched hist:af68b41d403b81b18de07ebab0ca4c1025c94bf7 (Results 1 – 2 of 2) sorted by relevance

/qemu/rust/qemu-api/src/
H A Dsysbus.rsaf68b41d403b81b18de07ebab0ca4c1025c94bf7 Mon Dec 02 12:16:19 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: pl011: only leave embedded object initialization in instance_init

Leave IRQ and MMIO initialization to instance_post_init. In Rust the
two callbacks are more distinct, because only instance_post_init has a
fully initialized object available.

While at it, add a wrapper for sysbus_init_mmio so that accesses to
the SysBusDevice correctly use shared references.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
/qemu/rust/hw/char/pl011/src/
H A Ddevice.rsaf68b41d403b81b18de07ebab0ca4c1025c94bf7 Mon Dec 02 12:16:19 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: pl011: only leave embedded object initialization in instance_init

Leave IRQ and MMIO initialization to instance_post_init. In Rust the
two callbacks are more distinct, because only instance_post_init has a
fully initialized object available.

While at it, add a wrapper for sysbus_init_mmio so that accesses to
the SysBusDevice correctly use shared references.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>