qom: introduce object_class_get_list_sorted
commit47c66009ab793241e8210b3018c77a9ce9506aa8
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 3 Mar 2018 07:33:10 +0000 (3 08:33 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Mar 2018 14:21:10 +0000 (12 15:21 +0100)
treedb80a563159ab6069416b8c040e63eeedbeeaad0
parent819fd4699c7b36d574292bcbd8bc25e9d716c84b
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>
include/qom/object.h
qdev-monitor.c
qom/object.c
target/alpha/cpu.c
target/hppa/cpu.c
target/lm32/cpu.c
target/sh4/cpu.c
target/tricore/helper.c