diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-29 16:18:25 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2024-02-02 13:51:58 +0000 |
commit | 858ab7140db46cfe14f38ce5c0643c289df0a515 (patch) | |
tree | 1baeb5b89d3e6b969cab56a67dfdf07756bf68f9 | |
parent | 04f4915424743671ca70c405ab69bc0a3ed8d937 (diff) | |
download | qemu-858ab7140db46cfe14f38ce5c0643c289df0a515.zip qemu-858ab7140db46cfe14f38ce5c0643c289df0a515.tar.gz qemu-858ab7140db46cfe14f38ce5c0643c289df0a515.tar.bz2 |
hw/arm/musca: Simplify setting MachineClass::valid_cpu_types[]
Musca boards use the embedded subsystems (SSE) tied to a specific
Cortex core. Our models only use the Cortex-M33.
Use the common code introduced in commit c9cf636d48 ("machine: Add
a valid_cpu_types property") to check for valid CPU type at the
board level.
Remove the now unused MachineClass::default_cpu_type field.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20240129151828.59544-7-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | hw/arm/musca.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/arm/musca.c b/hw/arm/musca.c index 770ec1a..e2c9d49 100644 --- a/hw/arm/musca.c +++ b/hw/arm/musca.c @@ -605,7 +605,6 @@ static void musca_class_init(ObjectClass *oc, void *data) mc->default_cpus = 2; mc->min_cpus = mc->default_cpus; mc->max_cpus = mc->default_cpus; - mc->default_cpu_type = ARM_CPU_TYPE_NAME("cortex-m33"); mc->valid_cpu_types = valid_cpu_types; mc->init = musca_init; } |