qemu-devel
[Top][All Lists]
Advanced

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

Re: qemu-softmmu -cpu help broken


From: Thomas Huth
Subject: Re: qemu-softmmu -cpu help broken
Date: Thu, 10 Mar 2022 12:39:20 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0

On 10/03/2022 12.10, Max Filippov wrote:
Hello,

I've noticed that the command
  qemu-system-xtensa -cpu help
no longer prints anything. Apparently because cpu_list is no longer defined
in list_cpus inside softmmu/cpus.c

Bisection points to the following commit:
e0220bb5b200 ("softmmu: Build target-agnostic objects once")

Reverting the change for the cpus.c fixes it for me:

diff --git a/softmmu/meson.build b/softmmu/meson.build
index 8138248661a2..adede5e604db 100644
--- a/softmmu/meson.build
+++ b/softmmu/meson.build
@@ -1,5 +1,6 @@
specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: [files(
   'arch_init.c',
+  'cpus.c',
   'ioport.c',
   'memory.c',
   'physmem.c',
@@ -13,7 +14,6 @@ specific_ss.add(when: ['CONFIG_SOFTMMU',
'CONFIG_TCG'], if_true: [files(
softmmu_ss.add(files(
   'balloon.c',
   'bootdevice.c',
-  'cpus.c',
   'cpu-throttle.c',
   'cpu-timers.c',
   'datadir.c',

I can send a proper patch if this is the right fix, please
let me know.

Since we're in soft-freeze now already, I think your patch is the best way to go forward, so yes, please post it as a proper patch!

 Thomas





reply via email to

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