diff mbox series

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

Message ID 20200918204759.225810-3-marcandre.lureau@redhat.com
State New
Headers show
Series Convert pc-bios Makefiles to meson | expand

Commit Message

Marc-André Lureau Sept. 18, 2020, 8:47 p.m. UTC
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 mbox series

Patch

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