projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e90f009
)
hw/apic.c: use bsr and bsf on x86_64
author
aurel32
<aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 1 Oct 2008 21:45:59 +0000
(21:45 +0000)
committer
aurel32
<aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 1 Oct 2008 21:45:59 +0000
(21:45 +0000)
(C.W. Betts)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5382
c046a42c
-6fe2-441c-8c8c-
71466251a162
hw/apic.c
patch
|
blob
|
history
diff --git
a/hw/apic.c
b/hw/apic.c
index 64e75ad0f01c469db07c7e48653675b178f5db8e..74e3a716156cc31785c41b80a94a93bb1d956324 100644
(file)
--- a/
hw/apic.c
+++ b/
hw/apic.c
@@
-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