On 2025-10-20 15:15, Philippe Mathieu-Daudé wrote:
Prefer MachineClass::get_default_cpu_type() over
MachineClass::default_cpu_type to get CPU type,
evaluating TCG availability at runtime calling
tcg_enabled().

It's worth noting that this is a behavior change:

- Previously only

   ./configure --disable-tcg --enable-kvm
   ./qemu-system-aarch64 -M virt -accel kvm

   would default to 'max' and

   ./configure --enable-tcg --enable-kvm
   ./qemu-system-aarch64 -M virt -accel kvm

   would default to 'cortex-a15'.

- Afterward, -accel kvm will always default to 'max'.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Reviewed-by: Zhang Chen <[email protected]>
---
  hw/arm/virt.c | 12 +++++++-----
  1 file changed, 7 insertions(+), 5 deletions(-)
Reviewed-by: Pierrick Bouvier <[email protected]>


Reply via email to