qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/6] optionrom: make kvmapic.S compile with clang


From: marcandre . lureau
Subject: [PATCH 2/6] optionrom: make kvmapic.S compile with clang
Date: Sat, 19 Sep 2020 00:47:55 +0400

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Clang doesn't support specifying segment prefixes before the
instruction, and requires specifying them on the address.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 pc-bios/optionrom/kvmvapic.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pc-bios/optionrom/kvmvapic.S b/pc-bios/optionrom/kvmvapic.S
index aa17a402df..9a615549e6 100644
--- a/pc-bios/optionrom/kvmvapic.S
+++ b/pc-bios/optionrom/kvmvapic.S
@@ -104,7 +104,7 @@ mp_get_tpr_eax:
        reenable_vtpr
        push %ecx
 
-       fs/movzbl pcr_cpu, %eax
+       movzbl %fs:pcr_cpu, %eax
 
        mov vcpu_shift, %ecx    ; fixup
        shl %cl, %eax
@@ -178,7 +178,7 @@ mp_set_tpr:
        reenable_vtpr
 
 mp_set_tpr_failed:
-       fs/movzbl pcr_cpu, %edx
+       movzbl %fs:pcr_cpu, %edx
 
        mov vcpu_shift, %ecx    ; fixup
        shl %cl, %edx
-- 
2.26.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]