[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] It's unnecessary on MOV CRn to use "q" or "l" to indicate default
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 0839d57c886471ab3221af0a551e03f568eaed4e # Parent 6e55040e7b79b613727c869321b02275ea37fe1c It's unnecessary on MOV CRn to use "q" or "l" to indicate default oparand size. Signed-off-by: Xin Li <xin.b.li@xxxxxxxxx> --- xen/arch/x86/hvm/svm/svm.c | 6 +----- xen/arch/x86/hvm/vmx/vmx.c | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff -r 6e55040e7b79 -r 0839d57c8864 xen/arch/x86/hvm/svm/svm.c --- a/xen/arch/x86/hvm/svm/svm.c Fri May 05 13:51:03 2006 +0100 +++ b/xen/arch/x86/hvm/svm/svm.c Fri May 05 13:57:16 2006 +0100 @@ -2821,11 +2821,7 @@ asmlinkage void svm_load_cr2(void) struct vcpu *v = current; local_irq_disable(); -#ifdef __i386__ - asm volatile("movl %0,%%cr2": :"r" (v->arch.hvm_svm.cpu_cr2)); -#else - asm volatile("movq %0,%%cr2": :"r" (v->arch.hvm_svm.cpu_cr2)); -#endif + asm volatile("mov %0,%%cr2": :"r" (v->arch.hvm_svm.cpu_cr2)); } asmlinkage void svm_asid(void) diff -r 6e55040e7b79 -r 0839d57c8864 xen/arch/x86/hvm/vmx/vmx.c --- a/xen/arch/x86/hvm/vmx/vmx.c Fri May 05 13:51:03 2006 +0100 +++ b/xen/arch/x86/hvm/vmx/vmx.c Fri May 05 13:57:16 2006 +0100 @@ -2284,11 +2284,7 @@ asmlinkage void vmx_load_cr2(void) struct vcpu *v = current; local_irq_disable(); -#ifdef __i386__ - asm volatile("movl %0,%%cr2": :"r" (v->arch.hvm_vmx.cpu_cr2)); -#else - asm volatile("movq %0,%%cr2": :"r" (v->arch.hvm_vmx.cpu_cr2)); -#endif + asm volatile("mov %0,%%cr2": :"r" (v->arch.hvm_vmx.cpu_cr2)); } asmlinkage void vmx_trace_vmentry (void) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |