qemu/rust
Paolo Bonzini d9434f29ca rust: qom: move device_id to PL011 class side
There is no need to monkeypatch DeviceId::Luminary into the already-initialized
PL011State.  Instead, now that we can define a class hierarchy, we can define
PL011Class and make device_id a field in there.

There is also no need anymore to have "Arm" as zero, so change DeviceId into a
wrapper for the array; all it does is provide an Index<hwaddr> implementation
because arrays can only be indexed by usize.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-01-10 23:34:43 +01:00
..
hw rust: qom: move device_id to PL011 class side 2025-01-10 23:34:43 +01:00
qemu-api rust: qom: automatically use Drop trait to implement instance_finalize 2025-01-10 23:34:43 +01:00
qemu-api-macros rust: macros: check that the first field of a #[derive(Object)] struct is a ParentField 2025-01-10 23:34:43 +01:00
.gitignore rust: add bindgen step as a meson dependency 2024-10-11 12:32:17 +02:00
Cargo.lock rust: introduce alternative implementation of offset_of! 2024-11-05 14:18:16 +01:00
Cargo.toml rust: qom: add casting functionality 2024-12-19 19:36:37 +01:00
Kconfig rust: add PL011 device model 2024-11-05 14:18:15 +01:00
meson.build rust: build: add "make clippy", "make rustfmt", "make rustdoc" 2024-12-10 18:44:06 +01:00
rustfmt.toml rust: add crate to expose bindings and interfaces 2024-10-11 12:32:17 +02:00
wrapper.h include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00