aboutsummaryrefslogtreecommitdiff
path: root/hw/avr/arduino.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-02-28 09:41:42 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2025-06-17 09:54:51 +0200
commitabf18324240a3c8f3feafbe5a96d4b83cd044615 (patch)
treec0826a7ba0472230df0f00986a40b4d759595932 /hw/avr/arduino.c
parent6c2888dd0f9b7129943d53cacd6a7b7143a65cfb (diff)
downloadqemu-abf18324240a3c8f3feafbe5a96d4b83cd044615.zip
qemu-abf18324240a3c8f3feafbe5a96d4b83cd044615.tar.gz
qemu-abf18324240a3c8f3feafbe5a96d4b83cd044615.tar.bz2
rust: qemu_api: introduce MaybeUninit field projection
Add a macro that makes it possible to convert a MaybeUninit<> into another MaybeUninit<> for a single field within it. Furthermore, it is possible to use the resulting MaybeUninitField<> in APIs that take the parent object, such as memory_region_init_io(). This allows removing some of the undefined behavior from instance_init() functions, though this may not be the definitive implementation. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/avr/arduino.c')
0 files changed, 0 insertions, 0 deletions