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

2025-04-22 Thread Richard Henderson
On 4/22/25 07:54, Philippe Mathieu-Daudé wrote: +typedef struct TargetInfo { + +/* runtime equivalent of TARGET_NAME definition */ +const char *const target_name; + +} TargetInfo; Watch the extra newlines. r~

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

2025-04-22 Thread Richard Henderson
On 4/22/25 07:54, Philippe Mathieu-Daudé wrote: 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é Revie

[RFC PATCH v4 02/19] qemu: Convert target_name() to TargetInfo API

2025-04-22 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 --- MAINTAINERS