qemu-cr16/rust/hw
Zhao Liu 9686aa9a05 rust/qdev: Support bit property in #property macro
Add BIT_INFO to QDevProp trait, so that bit related property info could
be bound to u32 & u64.

Then add "bit=*" field in #property attributes macro to allow device to
configure bit property.

In addtion, convert the #property field parsing from `if-else` pattern
to `match` pattern, to help readability. And note, the `bitnr` member of
`Property` struct is generated by manual TokenStream construction,
instead of conditional repetition (like #(bitnr: #bitnr,)?) since
`quote` doesn't support this.

In addtion, rename VALUE member of QDevProp trait to BASE_INFO.

And update the test cases about qdev property.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20250920160520.3699591-9-zhao1.liu@intel.com
2025-09-22 17:17:19 +02:00
..
char rust: meson: remove unnecessary complication in device crates 2025-09-17 19:00:58 +02:00
core rust/qdev: Support bit property in #property macro 2025-09-22 17:17:19 +02:00
timer rust: meson: remove unnecessary complication in device crates 2025-09-17 19:00:58 +02:00
Kconfig i386: enable rust hpet for pc when rust is enabled 2025-02-13 12:51:34 +01:00
meson.build rust/timer/hpet: define hpet_fw_cfg 2025-02-13 12:51:34 +01:00