qom/cpu: move cpu_model null check to cpu_class_by_name()
commit8301ea444abb49f7b7fb939b09c1e23b22977f30
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 17 Sep 2017 23:28:42 +0000 (17 20:28 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 10 Oct 2017 02:21:52 +0000 (9 23:21 -0300)
tree22dc7963464b3615aa96e96d6d873f1fb072c74d
parent530049bc1dcc24c1178a29d99ca08b6dd08413e0
qom/cpu: move cpu_model null check to cpu_class_by_name()

and clean every implementation.

Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20170917232842.14544-1-f4bug@amsat.org>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
14 files changed:
qom/cpu.c
target/alpha/cpu.c
target/arm/cpu.c
target/cris/cpu.c
target/lm32/cpu.c
target/m68k/cpu.c
target/mips/cpu.c
target/moxie/cpu.c
target/openrisc/cpu.c
target/sh4/cpu.c
target/sparc/cpu.c
target/tricore/cpu.c
target/unicore32/cpu.c
target/xtensa/cpu.c