ia64/xen-unstable

changeset 16180:62a7a2f4d9c7

[IA64] Fix MMIO readb operation

We should do clean before read operation. Otherwise, read one byte
data may get garbage data sometimes.

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
author Alex Williamson <alex.williamson@hp.com>
date Mon Oct 22 12:30:17 2007 -0600 (2007-10-22)
parents ecbda3783c85
children d105b8c30b7d
files xen/arch/ia64/vmx/mmio.c
line diff
     1.1 --- a/xen/arch/ia64/vmx/mmio.c	Mon Oct 22 12:26:53 2007 -0600
     1.2 +++ b/xen/arch/ia64/vmx/mmio.c	Mon Oct 22 12:30:17 2007 -0600
     1.3 @@ -120,6 +120,8 @@ static void low_mmio_access(VCPU *vcpu, 
     1.4      p->dir = dir;
     1.5      if (dir==IOREQ_WRITE)     // write;
     1.6          p->data = *val;
     1.7 +    else if (dir == IOREQ_READ)
     1.8 +        p->data = 0;          // clear all bits
     1.9      p->data_is_ptr = 0;
    1.10      p->type = 1;
    1.11      p->df = 0;