qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <laurent@vivier.eu>
To: Thomas Huth <thuth@redhat.com>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org
Subject: Re: [PATCH] linux-user/main: Use list_cpus() instead of cpu_list()
Date: Mon, 1 May 2023 17:41:22 +0200	[thread overview]
Message-ID: <396b251f-08d5-7f9c-b31b-86cfc8184b05@vivier.eu> (raw)
In-Reply-To: <20230424122126.236586-1-thuth@redhat.com>

Le 24/04/2023 à 14:21, Thomas Huth a écrit :
> This way we can get rid of the if'deffery and the XXX comment
> here (it's repeated in the list_cpus() function anyway).
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>   linux-user/main.c | 5 +----
>   1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/linux-user/main.c b/linux-user/main.c
> index fe03293516..aece4d9e91 100644
> --- a/linux-user/main.c
> +++ b/linux-user/main.c
> @@ -359,10 +359,7 @@ static void handle_arg_cpu(const char *arg)
>   {
>       cpu_model = strdup(arg);
>       if (cpu_model == NULL || is_help_option(cpu_model)) {
> -        /* XXX: implement xxx_cpu_list for targets that still miss it */
> -#if defined(cpu_list)
> -        cpu_list();
> -#endif
> +        list_cpus();
>           exit(EXIT_FAILURE);
>       }
>   }

Applied to my linux-user-for-8.1 branch.

Thanks,
Laurent



      parent reply	other threads:[~2023-05-01 15:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-24 12:21 [PATCH] linux-user/main: Use list_cpus() instead of cpu_list() Thomas Huth
2023-04-24 13:08 ` Richard Henderson
2023-04-24 15:27 ` Philippe Mathieu-Daudé
2023-05-01 15:41 ` Laurent Vivier [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=396b251f-08d5-7f9c-b31b-86cfc8184b05@vivier.eu \
    --to=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.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).