mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-19 14:08:39 -07:00
A safe REALIZE accepts immutable reference. Since current PL011's realize() only calls a char binding function ( qemu_chr_fe_set_handlers), it is possible to convert mutable reference (&mut self) to immutable reference (&self), which only needs to convert the pointers passed to C to mutable pointers. Thus, make REALIZE accept immutable reference. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250121140457.84631-2-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> |
||
|---|---|---|
| .. | ||
| assertions.rs | ||
| bindings.rs | ||
| bitops.rs | ||
| c_str.rs | ||
| callbacks.rs | ||
| cell.rs | ||
| irq.rs | ||
| lib.rs | ||
| module.rs | ||
| offset_of.rs | ||
| prelude.rs | ||
| qdev.rs | ||
| qom.rs | ||
| sysbus.rs | ||
| vmstate.rs | ||
| zeroable.rs | ||