Home
last modified time | relevance | path

Searched hist:"559 a779c6aa309853474240b01fcc2beff1f04ca" (Results 1 – 4 of 4) sorted by relevance

/qemu/rust/qemu-api/src/
H A Dirq.rs559a779c6aa309853474240b01fcc2beff1f04ca Fri Nov 29 09:46:44 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: qdev: expose inherited methods to subclasses of SysBusDevice

The ObjectDeref trait now provides all the magic that is required to fake
inheritance. Replace the "impl SysBusDevice" block of qemu_api::sysbus
with a trait, so that sysbus_init_irq() can be invoked as "self.init_irq()"
without any intermediate upcast.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
H A Dsysbus.rs559a779c6aa309853474240b01fcc2beff1f04ca Fri Nov 29 09:46:44 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: qdev: expose inherited methods to subclasses of SysBusDevice

The ObjectDeref trait now provides all the magic that is required to fake
inheritance. Replace the "impl SysBusDevice" block of qemu_api::sysbus
with a trait, so that sysbus_init_irq() can be invoked as "self.init_irq()"
without any intermediate upcast.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
H A Dprelude.rs559a779c6aa309853474240b01fcc2beff1f04ca Fri Nov 29 09:46:44 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: qdev: expose inherited methods to subclasses of SysBusDevice

The ObjectDeref trait now provides all the magic that is required to fake
inheritance. Replace the "impl SysBusDevice" block of qemu_api::sysbus
with a trait, so that sysbus_init_irq() can be invoked as "self.init_irq()"
without any intermediate upcast.

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.rs559a779c6aa309853474240b01fcc2beff1f04ca Fri Nov 29 09:46:44 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: qdev: expose inherited methods to subclasses of SysBusDevice

The ObjectDeref trait now provides all the magic that is required to fake
inheritance. Replace the "impl SysBusDevice" block of qemu_api::sysbus
with a trait, so that sysbus_init_irq() can be invoked as "self.init_irq()"
without any intermediate upcast.

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