From: "Philippe Mathieu-Daudé" <philippe.mathieu.daude@gmail.com>
To: Thomas Huth <thuth@redhat.com>, qemu-devel@nongnu.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
"Max Filippov" <jcmvbkbc@gmail.com>
Subject: Re: [PATCH-for-7.0 v2] softmmu: List CPU types again
Date: Mon, 14 Mar 2022 14:59:52 +0100 [thread overview]
Message-ID: <66621e30-4304-7d27-cc14-829eccbb6290@gmail.com> (raw)
In-Reply-To: <4df842b7-5fee-e38a-82e4-638b4f95920f@redhat.com>
On 10/3/22 16:16, Thomas Huth wrote:
> On 10/03/2022 15.07, Philippe Mathieu-Daudé wrote:
>> From: Philippe Mathieu-Daudé <f4bug@amsat.org>
>>
>> Commit e0220bb5b2 made cpus.c target-agnostic but didn't notice
>> the cpu_list() function is only defined in target-specific code
>> in "cpu.h". Move list_cpus() declaration to "exec/cpu-common.h"
>> because this function is not softmmu-specific and can also be
>> used by user-mode, along with moving its implementation to cpu.c,
>> which is compiled per target.
>>
>> Fixes: e0220bb5b2 ("softmmu: Build target-agnostic objects once")
>> Reported-by: Max Filippov <jcmvbkbc@gmail.com>
>> Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
>> cpu.c | 9 +++++++++
>> include/exec/cpu-common.h | 2 ++
>> include/sysemu/cpus.h | 2 --
>> softmmu/cpus.c | 8 --------
>> 4 files changed, 11 insertions(+), 10 deletions(-)
>>
>> diff --git a/cpu.c b/cpu.c
>> index d564886149..d50845f713 100644
>> --- a/cpu.c
>> +++ b/cpu.c
>> @@ -35,6 +35,7 @@
>> #include "sysemu/tcg.h"
>> #include "sysemu/kvm.h"
>> #include "sysemu/replay.h"
>> +#include "exec/cpu-all.h"
>
> Why not cpu-common.h?
Copy/paste mistake I presume.
> Reviewed-by: Thomas Huth <thuth@redhat.com>
Thanks!
prev parent reply other threads:[~2022-03-14 14:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-10 14:07 [PATCH-for-7.0 v2] softmmu: List CPU types again Philippe Mathieu-Daudé
2022-03-10 15:16 ` Thomas Huth
2022-03-14 13:59 ` Philippe Mathieu-Daudé [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=66621e30-4304-7d27-cc14-829eccbb6290@gmail.com \
--to=philippe.mathieu.daude@gmail.com \
--cc=f4bug@amsat.org \
--cc=jcmvbkbc@gmail.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).