aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api-macros/src
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-11-29 11:38:59 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2025-01-10 23:34:43 +0100
commitd9434f29ca83e114fe02ed24c8ad2ccfa7ac3fe9 (patch)
treeb3ca51166c946371d4b6a9c7973239bfab0df9ae /rust/qemu-api-macros/src
parent33aa660575f7174752a7308229e5fc108921c2a6 (diff)
downloadqemu-d9434f29ca83e114fe02ed24c8ad2ccfa7ac3fe9.zip
qemu-d9434f29ca83e114fe02ed24c8ad2ccfa7ac3fe9.tar.gz
qemu-d9434f29ca83e114fe02ed24c8ad2ccfa7ac3fe9.tar.bz2
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>
Diffstat (limited to 'rust/qemu-api-macros/src')
0 files changed, 0 insertions, 0 deletions