ia64/xen-unstable

changeset 15085:e527b4ff1948

hvm qemu: Fix write parameter masking for 64-bit guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Sat May 12 12:41:40 2007 +0100 (2007-05-12)
parents 5f6da38ff828
children 6087058857c5
files tools/ioemu/target-i386-dm/helper2.c
line diff
     1.1 --- a/tools/ioemu/target-i386-dm/helper2.c	Sat May 12 12:37:51 2007 +0100
     1.2 +++ b/tools/ioemu/target-i386-dm/helper2.c	Sat May 12 12:41:40 2007 +0100
     1.3 @@ -495,7 +495,7 @@ void cpu_ioreq_xchg(CPUState *env, ioreq
     1.4  
     1.5  void __handle_ioreq(CPUState *env, ioreq_t *req)
     1.6  {
     1.7 -    if (!req->data_is_ptr && req->dir == IOREQ_WRITE && req->size != 4)
     1.8 +    if (!req->data_is_ptr && (req->dir == IOREQ_WRITE) && (req->size != sizeof(req->data)))
     1.9  	req->data &= (1UL << (8 * req->size)) - 1;
    1.10  
    1.11      switch (req->type) {