qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 2/6] hw/arm/exynos: Check for CPU types in machine_run_boa


From: Gavin Shan
Subject: Re: [PATCH v2 2/6] hw/arm/exynos: Check for CPU types in machine_run_board_init()
Date: Thu, 25 Jan 2024 12:11:01 +1000
User-agent: Mozilla Thunderbird

On 1/24/24 08:25, Philippe Mathieu-Daudé wrote:
Restrict MachineClass::valid_cpu_types[] to the single
valid CPU type.

Instead of ignoring invalid CPU type requested by the user:

   $ qemu-system-arm -M nuri -cpu cortex-a7 -S -monitor stdio
   QEMU 8.2.50 monitor - type 'help' for more information
   (qemu) info qom-tree
   /machine (nuri-machine)
     /soc (exynos4210)
       /cpu[0] (cortex-a9-arm-cpu)
       ...

We now display an error:

   $ qemu-system-arm -M nuri -cpu cortex-a7
   qemu-system-arm: Invalid CPU model: cortex-a7
   The only valid type is: cortex-a9

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  hw/arm/exynos4_boards.c | 8 ++++++++
  1 file changed, 8 insertions(+)


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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]