[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/8] hw/arm/highbank: Check for CPU types in machine_run_board_in
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 2/8] hw/arm/highbank: Check for CPU types in machine_run_board_init() |
Date: |
Tue, 23 Jan 2024 07:38:36 +0100 |
Restrict MachineClass::valid_cpu_types[] to the single
valid CPU types.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/arm/highbank.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c
index e6e27d69af..67677eb651 100644
--- a/hw/arm/highbank.c
+++ b/hw/arm/highbank.c
@@ -344,10 +344,15 @@ static void midway_init(MachineState *machine)
static void highbank_class_init(ObjectClass *oc, void *data)
{
+ static const char * const valid_cpu_types[] = {
+ ARM_CPU_TYPE_NAME("cortex-a9"),
+ NULL
+ };
MachineClass *mc = MACHINE_CLASS(oc);
mc->desc = "Calxeda Highbank (ECX-1000)";
mc->init = highbank_init;
+ mc->valid_cpu_types = valid_cpu_types;
mc->block_default_type = IF_IDE;
mc->units_per_default_bus = 1;
mc->max_cpus = 4;
@@ -363,10 +368,15 @@ static const TypeInfo highbank_type = {
static void midway_class_init(ObjectClass *oc, void *data)
{
+ static const char * const valid_cpu_types[] = {
+ ARM_CPU_TYPE_NAME("cortex-a15"),
+ NULL
+ };
MachineClass *mc = MACHINE_CLASS(oc);
mc->desc = "Calxeda Midway (ECX-2000)";
mc->init = midway_init;
+ mc->valid_cpu_types = valid_cpu_types;
mc->block_default_type = IF_IDE;
mc->units_per_default_bus = 1;
mc->max_cpus = 4;
--
2.41.0
- [PATCH 0/8] hw/arm/cortex-a: Check for CPU types in machine_run_board_init(), Philippe Mathieu-Daudé, 2024/01/23
- [PATCH 2/8] hw/arm/highbank: Check for CPU types in machine_run_board_init(),
Philippe Mathieu-Daudé <=
- [PATCH 1/8] hw/arm/exynos: Check for CPU types in machine_run_board_init(), Philippe Mathieu-Daudé, 2024/01/23
- [PATCH 4/8] hw/arm/aspeed/2400: Check for CPU types in machine_run_board_init(), Philippe Mathieu-Daudé, 2024/01/23
- [PATCH 3/8] hw/arm/vexpress: Check for CPU types in machine_run_board_init(), Philippe Mathieu-Daudé, 2024/01/23
- [PATCH 5/8] hw/arm/aspeed/2500: Check for CPU types in machine_run_board_init(), Philippe Mathieu-Daudé, 2024/01/23
- [PATCH 6/8] hw/arm/aspeed/2600: Check for CPU types in machine_run_board_init(), Philippe Mathieu-Daudé, 2024/01/23
- [PATCH 7/8] hw/arm/aspeed/1030: Check for CPU types in machine_run_board_init(), Philippe Mathieu-Daudé, 2024/01/23