On 1/24/24 08:48, Philippe Mathieu-Daudé wrote:
Aspeed SoCs use a single CPU type (set as AspeedSoCClass::cpu_type).
Convert it to a NULL-terminated array (of a single non-NULL element).

Set MachineClass::valid_cpu_types[] to use the common machine code
to provide hints when the requested CPU is invalid (see commit
e702cbc19e ("machine: Improve is_cpu_type_supported()").

Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
---
  include/hw/arm/aspeed_soc.h |  3 ++-
  hw/arm/aspeed.c             |  1 +
  hw/arm/aspeed_ast10x0.c     |  6 +++++-
  hw/arm/aspeed_ast2400.c     | 12 ++++++++++--
  hw/arm/aspeed_ast2600.c     |  6 +++++-
  hw/arm/aspeed_soc_common.c  |  5 ++++-
  6 files changed, 27 insertions(+), 6 deletions(-)


Reviewed-by: Gavin Shan <gs...@redhat.com>


Reply via email to