qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Riku Voipio <riku.voipio@iki.fi>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Riku Voipio <riku.voipio@iki.fi>,
	QEMU Developers <qemu-devel@nongnu.org>,
	Patch Tracking <patches@linaro.org>
Subject: Re: [Qemu-devel] [PATCH] linux-user/uname: Return correct uname string for x86_64
Date: Thu, 5 Jun 2014 16:11:34 +0300	[thread overview]
Message-ID: <20140605131134.GA16772@afflict.kos.to> (raw)
In-Reply-To: <CAFEAcA-mSVEhGJmatMY9CpQFNjQO+jW1yCDKMiGiTkTHtVq7ZA@mail.gmail.com>

Hi,

On Tue, Jun 03, 2014 at 03:07:59PM +0100, Peter Maydell wrote:
> Ping!

Looks good, I'll collect this and other linux-user patches and submit linux-user update
by tomorrow.

Riku

> thanks
> -- PMM
> 
> On 10 May 2014 12:25, Peter Maydell <peter.maydell@linaro.org> wrote:
> > We were returning the incorrect uname string (with a hyphen, not
> > an underscore) for x86_64. Fix this by removing the x86_64 special
> > case, since the default "just use UNAME_MACHINE" behaviour suffices.
> > This leaves cpu_to_uname_machine() special cases for only those
> > architectures which need to vary the string based on runtime CPU
> > features.
> >
> > Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> > ---
> >  linux-user/uname.c | 4 +---
> >  1 file changed, 1 insertion(+), 3 deletions(-)
> >
> > diff --git a/linux-user/uname.c b/linux-user/uname.c
> > index f5d4c66..1e6560d 100644
> > --- a/linux-user/uname.c
> > +++ b/linux-user/uname.c
> > @@ -52,9 +52,7 @@ const char *cpu_to_uname_machine(void *cpu_env)
> >      /* earliest emulated CPU is ARMv5TE; qemu can emulate the 1026, but not its
> >       * Jazelle support */
> >      return "armv5te" utsname_suffix;
> > -#elif defined(TARGET_X86_64)
> > -    return "x86-64";
> > -#elif defined(TARGET_I386)
> > +#elif defined(TARGET_I386) && !defined(TARGET_X86_64)
> >      /* see arch/x86/kernel/cpu/bugs.c: check_bugs(), 386, 486, 586, 686 */
> >      CPUState *cpu = ENV_GET_CPU((CPUX86State *)cpu_env);
> >      int family = object_property_get_int(OBJECT(cpu), "family", NULL);
> > --
> > 1.9.2
> >
> >

  reply	other threads:[~2014-06-05 13:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-10 11:25 [Qemu-devel] [PATCH] linux-user/uname: Return correct uname string for x86_64 Peter Maydell
2014-06-03 14:07 ` Peter Maydell
2014-06-05 13:11   ` Riku Voipio [this message]
2014-06-05 13:21     ` Peter Maydell
2014-06-06  9:20       ` Riku Voipio

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=20140605131134.GA16772@afflict.kos.to \
    --to=riku.voipio@iki.fi \
    --cc=patches@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /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).