ia64/xen-unstable

changeset 9688:042b695ffc69

[IA64] fix a mmio bug

Fix a bug in mmio emulation

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
author awilliam@xenbuild.aw
date Fri Apr 14 14:24:09 2006 -0600 (2006-04-14)
parents b5c2dba60b69
children f6e8c269f6af
files xen/arch/ia64/vmx/mmio.c
line diff
     1.1 --- a/xen/arch/ia64/vmx/mmio.c	Fri Apr 14 14:21:54 2006 -0600
     1.2 +++ b/xen/arch/ia64/vmx/mmio.c	Fri Apr 14 14:24:09 2006 -0600
     1.3 @@ -489,11 +489,11 @@ void emulate_io_inst(VCPU *vcpu, u64 pad
     1.4          mmio_access(vcpu, padr, &data, size, ma, dir);
     1.5      }else{
     1.6          mmio_access(vcpu, padr, &data, size, ma, dir);
     1.7 -        if(size==0)
     1.8 +        if(size==1)
     1.9              data = (value & 0xffffffffffffff00U) | (data & 0xffU);
    1.10 -        else if(size==1)
    1.11 +        else if(size==2)
    1.12              data = (value & 0xffffffffffff0000U) | (data & 0xffffU);
    1.13 -        else if(size==2)
    1.14 +        else if(size==4)
    1.15              data = (value & 0xffffffff00000000U) | (data & 0xffffffffU);
    1.16  
    1.17          if(inst_type==SL_INTEGER){       //gp