diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-03-03 08:33:10 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-03-12 15:21:10 +0100 |
commit | 47c66009ab793241e8210b3018c77a9ce9506aa8 (patch) | |
tree | db80a563159ab6069416b8c040e63eeedbeeaad0 /target/tricore | |
parent | 819fd4699c7b36d574292bcbd8bc25e9d716c84b (diff) |
qom: introduce object_class_get_list_sorted
Unify half a dozen copies of very similar code (the only difference being
whether comparisons were case-sensitive) and use it also in Tricore,
which did not do any sorting of CPU model names.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/tricore')
-rw-r--r-- | target/tricore/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/tricore/helper.c b/target/tricore/helper.c index 45276d3782..dad7eea085 100644 --- a/target/tricore/helper.c +++ b/target/tricore/helper.c @@ -101,7 +101,7 @@ void tricore_cpu_list(FILE *f, fprintf_function cpu_fprintf) }; GSList *list; - list = object_class_get_list(TYPE_TRICORE_CPU, false); + list = object_class_get_list_sorted(TYPE_TRICORE_CPU, false); (*cpu_fprintf)(f, "Available CPUs:\n"); g_slist_foreach(list, tricore_cpu_list_entry, &s); g_slist_free(list); |