Commit 5a964d93 authored by aurel32's avatar aurel32

hw/apic.c: use bsr and bsf on x86_64

(C.W. Betts)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5382 c046a42c-6fe2-441c-8c8c-71466251a162
parent e90f009b
......@@ -109,7 +109,7 @@ static int fls_bit(uint32_t value)
{
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 @@ static int ffs_bit(uint32_t value)
{
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment