On Mon, Oct 08, 2007 at 09:55:37AM -0500, Anthony Liguori wrote: > Dan Kenigsberg wrote: > >In X's vmmouse_drv, the magic number is defined as uint32_t. Therefore > >the top half of the 64 bit ax register is garbage that should be > >ignored. This makes fc6 guest's vmmouse work. > > > > > > I think a better fix would be to change eax from target_ulong to uint32_t. >
I don't really mind that. ================ Index: hw/vmport.c =================================================================== RCS file: /sources/qemu/qemu/hw/vmport.c,v retrieving revision 1.1 diff -u -p -r1.1 vmport.c --- hw/vmport.c 26 Aug 2007 17:48:12 -0000 1.1 +++ hw/vmport.c 8 Oct 2007 15:24:50 -0000 @@ -52,7 +52,7 @@ static uint32_t vmport_ioport_read(void { VMPortState *s = opaque; unsigned char command; - target_ulong eax; + uint32_t eax; eax = s->env->regs[R_EAX]; if (eax != VMPORT_MAGIC)