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>
Showing
- include/qom/object.h 11 additions, 0 deletionsinclude/qom/object.h
- qdev-monitor.c 1 addition, 8 deletionsqdev-monitor.c
- qom/object.c 13 additions, 0 deletionsqom/object.c
- target/alpha/cpu.c 1 addition, 14 deletionstarget/alpha/cpu.c
- target/hppa/cpu.c 1 addition, 14 deletionstarget/hppa/cpu.c
- target/lm32/cpu.c 1 addition, 14 deletionstarget/lm32/cpu.c
- target/sh4/cpu.c 1 addition, 14 deletionstarget/sh4/cpu.c
- target/tricore/helper.c 1 addition, 1 deletiontarget/tricore/helper.c
Loading
Please register or sign in to comment