]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust: pl011: convert pl011_create to safe Rust
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 10 Feb 2025 15:11:58 +0000 (16:11 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 13 Feb 2025 11:19:34 +0000 (12:19 +0100)
commit7630ca2a701a0f79728996e660cda06518c97b9b
treee5dea0c62d84107da1b947042e90d0ee8f7ad809
parenta22bd55ffd889f3027c3158d0014c76f204c69dd
rust: pl011: convert pl011_create to safe Rust

Not a major change but, as a small but significant step in creating
qdev bindings, show how pl011_create can be written without "unsafe"
calls (apart from converting pointers to references).

This also provides a starting point for creating Error** bindings.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/char/pl011/src/device.rs
rust/qemu-api/src/sysbus.rs