On 1/25/25 10:13, Philippe Mathieu-Daudé wrote:
Some TYPE_SYS_BUS_DEVICEs can be optionally dynamically
plugged on the TYPE_PLATFORM_BUS_DEVICE.
Rather than sometimes noting that with comment around
the 'user_creatable = true' line in each DeviceRealize
handler, introduce an abstract TYPE_DYNAMIC_SYS_BUS_DEVICE
class.
Signed-off-by: Philippe Mathieu-Daudé<phi...@linaro.org>
---
include/hw/sysbus.h | 2 ++
hw/core/sysbus.c | 14 ++++++++++++++
2 files changed, 16 insertions(+)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~