Skip to content

Commit

Permalink
aspeed: Make the ast2600-a3 SoC not user creatable
Browse files Browse the repository at this point in the history
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: f25c0ae ("aspeed/soc: Add AST2600 support")
Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240319150903.413662-1-clg@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
  • Loading branch information
legoater authored and huth committed Mar 25, 2024
1 parent ed355dc commit ed6d5c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hw/arm/aspeed_ast2600.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,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;
Expand Down

0 comments on commit ed6d5c2

Please sign in to comment.