system/vl: Filter machine list available for a particular target binary
Binaries can register a QOM type to filter their machines by filling their TargetInfo::machine_typename field. This can be used by example by main() -> machine_help_func() to filter the machines list. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
5e5a9aea79
commit
28502121be
5 changed files with 19 additions and 1 deletions
|
|
@ -14,3 +14,8 @@ const char *target_name(void)
|
|||
{
|
||||
return target_info()->target_name;
|
||||
}
|
||||
|
||||
const char *target_machine_typename(void)
|
||||
{
|
||||
return target_info()->machine_typename;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue