aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/apic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/apic.c b/hw/apic.c
index 64e75ad0f0..74e3a71615 100644
--- 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