* qemu-softmmu -cpu help broken
@ 2022-03-10 11:10 Max Filippov
2022-03-10 11:39 ` Thomas Huth
2022-03-10 13:31 ` Paolo Bonzini
0 siblings, 2 replies; 3+ messages in thread
From: Max Filippov @ 2022-03-10 11:10 UTC (permalink / raw)
To: qemu-devel; +Cc: Philippe Mathieu-Daudé
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.
--
Thanks.
-- Max
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: qemu-softmmu -cpu help broken
2022-03-10 11:10 qemu-softmmu -cpu help broken Max Filippov
@ 2022-03-10 11:39 ` Thomas Huth
2022-03-10 13:31 ` Paolo Bonzini
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2022-03-10 11:39 UTC (permalink / raw)
To: Max Filippov, qemu-devel; +Cc: Philippe Mathieu-Daudé
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: qemu-softmmu -cpu help broken
2022-03-10 11:10 qemu-softmmu -cpu help broken Max Filippov
2022-03-10 11:39 ` Thomas Huth
@ 2022-03-10 13:31 ` Paolo Bonzini
1 sibling, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2022-03-10 13:31 UTC (permalink / raw)
To: Max Filippov, qemu-devel; +Cc: Philippe Mathieu-Daudé
On 3/10/22 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
I think it'd be better to move list_cpus() to cpu.c in the root
directory, and from include/sysemu/cpus.h to include/exec/cpu-common.h.
Paolo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-10 14:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-10 11:10 qemu-softmmu -cpu help broken Max Filippov
2022-03-10 11:39 ` Thomas Huth
2022-03-10 13:31 ` Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).