qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] vmmouse with Fedora-6 64bit guest


From: Dan Kenigsberg
Subject: Re: [Qemu-devel] vmmouse with Fedora-6 64bit guest
Date: Mon, 8 Oct 2007 17:37:12 +0200
User-agent: Mutt/1.5.14 (2007-02-12)

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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]