Re: [RFC PATCH v3 02/14] qemu: Convert target_name() to TargetInfo API

2025-04-22 Thread Philippe Mathieu-Daudé
On 21/4/25 17:56, Richard Henderson wrote: On 4/18/25 10:28, Philippe Mathieu-Daudé wrote:   include/hw/core/cpu.h   |  2 --   include/qemu/target_info-impl.h | 23 +++   include/qemu/target_info.h  | 19 +++   cpu-target.c    |  5 --

Re: [RFC PATCH v3 02/14] qemu: Convert target_name() to TargetInfo API

2025-04-21 Thread Richard Henderson
On 4/18/25 10:28, Philippe Mathieu-Daudé wrote: include/hw/core/cpu.h | 2 -- include/qemu/target_info-impl.h | 23 +++ include/qemu/target_info.h | 19 +++ cpu-target.c| 5 - hw/core/machine-qmp-cmds.c | 1 +

[RFC PATCH v3 02/14] qemu: Convert target_name() to TargetInfo API

2025-04-18 Thread Philippe Mathieu-Daudé
Have target_name() be a target-agnostic method, dispatching to a per-target TargetInfo singleton structure. By default a stub singleton is used. No logical change expected. Inspired-by: Pierrick Bouvier Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier --- meson.build