Skip to contentSkip to conversation

aspeed: Make the ast2600-a3 SoC not user creatable

PATCH In review Cédric Le Goater 2 participants 4 messages Mar 19, 2024 Arm/Aspeed machine support

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 aspeed: Make the ast2600-a3 SoC not user creatable

Aspeed SoCs are complex devices that can not be specified on the command line. Fix that to avoid QEMU aborts.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2227

Fixes f25c0ae1079d ("aspeed/soc: Add AST2600 support")
---
 hw/arm/aspeed_ast2600.c | 2 ++
 1 file changed, 2 insertions(+)
hw/arm/aspeed_ast2600.c +2 -0
index 8a47d82d8371..03d115846e4d 100644
@@ -743,6 +743,8 @@ static void aspeed_soc_ast2600_class_init(ObjectClass *oc, void *data)
     AspeedSoCClass *sc = ASPEED_SOC_CLASS(oc);
 
     dc->realize      = aspeed_soc_ast2600_realize;
+    /* Reason: The Aspeed SoC can only be instantiated from a board */
+    dc->user_creatable = false;
 
     sc->name         = "ast2600-a3";
     sc->valid_cpu_types = valid_cpu_types;
Signature · 1 line
2.44.0
#1 lore raw

PATCH 2/2 aspeed: Make the ast1030-a1 SoC not user creatable

Aspeed SoCs are complex devices that can not be specified on the command line. Fix that to avoid QEMU aborts.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2227

Fixes 356b230ed138 ("aspeed/soc : Add AST1030 support")
---
 hw/arm/aspeed_ast10x0.c | 2 ++
 1 file changed, 2 insertions(+)
hw/arm/aspeed_ast10x0.c +2 -0
index 2634e0f6544e..9f98ad8e87ae 100644
@@ -424,6 +424,8 @@ static void aspeed_soc_ast1030_class_init(ObjectClass *klass, void *data)
     DeviceClass *dc = DEVICE_CLASS(klass);
     AspeedSoCClass *sc = ASPEED_SOC_CLASS(dc);
 
+    /* Reason: The Aspeed SoC can only be instantiated from a board */
+    dc->user_creatable = false;
     dc->realize = aspeed_soc_ast1030_realize;
 
     sc->name = "ast1030-a1";
Signature · 1 line
2.44.0
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] aspeed: Make the ast1030-a1 SoC not user creatable

Quoted 10 lines · Cédric Le Goater

Aspeed SoCs are complex devices that can not be specified on the command line. Fix that to avoid QEMU aborts.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2227

Fixes 356b230ed138 ("aspeed/soc : Add AST1030 support")
---
  hw/arm/aspeed_ast10x0.c | 2 ++
  1 file changed, 2 insertions(+)
Reviewed-by on v1 1/2
#3 lore raw
In reply to Cédric Le Goater
Quoted 10 lines · Cédric Le Goater

Aspeed SoCs are complex devices that can not be specified on the command line. Fix that to avoid QEMU aborts.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2227

Fixes f25c0ae1079d ("aspeed/soc: Add AST2600 support")
---
  hw/arm/aspeed_ast2600.c | 2 ++
  1 file changed, 2 insertions(+)