ia64/xen-unstable

changeset 9948:0839d57c8864

It's unnecessary on MOV CRn to use "q" or "l" to indicate default
oparand size.
Signed-off-by: Xin Li <xin.b.li@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri May 05 13:57:16 2006 +0100 (2006-05-05)
parents 6e55040e7b79
children 1d9df2f7030d
files xen/arch/x86/hvm/svm/svm.c xen/arch/x86/hvm/vmx/vmx.c
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/svm.c	Fri May 05 13:51:03 2006 +0100
     1.2 +++ b/xen/arch/x86/hvm/svm/svm.c	Fri May 05 13:57:16 2006 +0100
     1.3 @@ -2821,11 +2821,7 @@ asmlinkage void svm_load_cr2(void)
     1.4      struct vcpu *v = current;
     1.5  
     1.6      local_irq_disable();
     1.7 -#ifdef __i386__
     1.8 -    asm volatile("movl %0,%%cr2": :"r" (v->arch.hvm_svm.cpu_cr2));
     1.9 -#else
    1.10 -    asm volatile("movq %0,%%cr2": :"r" (v->arch.hvm_svm.cpu_cr2));
    1.11 -#endif
    1.12 +    asm volatile("mov %0,%%cr2": :"r" (v->arch.hvm_svm.cpu_cr2));
    1.13  }
    1.14  
    1.15  asmlinkage void svm_asid(void)
     2.1 --- a/xen/arch/x86/hvm/vmx/vmx.c	Fri May 05 13:51:03 2006 +0100
     2.2 +++ b/xen/arch/x86/hvm/vmx/vmx.c	Fri May 05 13:57:16 2006 +0100
     2.3 @@ -2284,11 +2284,7 @@ asmlinkage void vmx_load_cr2(void)
     2.4      struct vcpu *v = current;
     2.5  
     2.6      local_irq_disable();
     2.7 -#ifdef __i386__
     2.8 -    asm volatile("movl %0,%%cr2": :"r" (v->arch.hvm_vmx.cpu_cr2));
     2.9 -#else
    2.10 -    asm volatile("movq %0,%%cr2": :"r" (v->arch.hvm_vmx.cpu_cr2));
    2.11 -#endif
    2.12 +    asm volatile("mov %0,%%cr2": :"r" (v->arch.hvm_vmx.cpu_cr2));
    2.13  }
    2.14  
    2.15  asmlinkage void vmx_trace_vmentry (void)