aspeed: Make the ast2600-a3 SoC not user creatable
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
--- hw/arm/aspeed_ast2600.c | 2 ++ 1 file changed, 2 insertions(+)
hw/arm/aspeed_ast2600.c +2 -0
@@ -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
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
--- hw/arm/aspeed_ast10x0.c | 2 ++ 1 file changed, 2 insertions(+)
hw/arm/aspeed_ast10x0.c +2 -0
@@ -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
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")Reported-by Thomas Huth <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>--- hw/arm/aspeed_ast10x0.c | 2 ++ 1 file changed, 2 insertions(+)
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")Reported-by Thomas Huth <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>--- hw/arm/aspeed_ast2600.c | 2 ++ 1 file changed, 2 insertions(+)