qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [patch] use bsr and bsf on x86_64
Date: Wed, 1 Oct 2008 23:48:12 +0200	[thread overview]
Message-ID: <20081001214812.GD31270@volta.aurel32.net> (raw)
In-Reply-To: <8B966610-6ECA-40B6-8919-F93506F0C356@hotmail.com>

On Mon, Sep 15, 2008 at 10:09:37AM -0600, C.W. Betts wrote:
> This patch makes apic.c use asm code bsr and bsf on X86_64 processors.  I 
> haven't had any problems with this code…

Applied, thanks.

> Index: hw/apic.c
> ===================================================================
> --- hw/apic.c	(revision 5229)
> +++ hw/apic.c	(working copy)
> @@ -109,7 +109,7 @@
>  {
>      unsigned int ret = 0;
>
> -#if defined(HOST_I386)
> +#if defined(HOST_I386) || defined(HOST_X86_64)
>      __asm__ __volatile__ ("bsr %1, %0\n" : "+r" (ret) : "rm" (value));
>      return ret;
>  #else
> @@ -130,7 +130,7 @@
>  {
>      unsigned int ret = 0;
>
> -#if defined(HOST_I386)
> +#if defined(HOST_I386) || defined(HOST_X86_64)
>      __asm__ __volatile__ ("bsf %1, %0\n" : "+r" (ret) : "rm" (value));
>      return ret;
>  #else
>
>
>
>
>
>

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net

      parent reply	other threads:[~2008-10-01 21:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8B966610-6ECA-40B6-8919-F93506F0C356@hotmail.com>
2008-09-15 16:09 ` [Qemu-devel] [patch] use bsr and bsf on x86_64 C.W. Betts
2008-10-01 21:48 ` Aurelien Jarno [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=20081001214812.GD31270@volta.aurel32.net \
    --to=aurelien@aurel32.net \
    --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).