Skip to content

Commit e02c16b

Browse files
ouptonbonzini
authored andcommitted
selftests: KVM: Don't clobber XMM register when read
There is no need to clobber a register that is only being read from. Oops. Drop the XMM register from the clobbers list. Signed-off-by: Oliver Upton <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 5c49d18 commit e02c16b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/kvm/include/x86_64/processor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static inline void set_xmm(int n, unsigned long val)
315315
#define GET_XMM(__xmm) \
316316
({ \
317317
unsigned long __val; \
318-
asm volatile("movq %%"#__xmm", %0" : "=r"(__val) : : #__xmm); \
318+
asm volatile("movq %%"#__xmm", %0" : "=r"(__val)); \
319319
__val; \
320320
})
321321

0 commit comments

Comments
 (0)