Home
last modified time | relevance | path

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

/qemu/rust/hw/char/pl011/src/
H A Ddevice.rsd9434f29ca83e114fe02ed24c8ad2ccfa7ac3fe9 Fri Nov 29 10:38:59 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> 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>