qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] linux-user: fix up oversealous nitpicking


From: Michael S. Tsirkin
Subject: [Qemu-devel] [PATCH] linux-user: fix up oversealous nitpicking
Date: Thu, 1 Oct 2009 08:38:36 +0200
User-agent: Mutt/1.5.19 (2009-01-05)

Looks like linux-user code was correct, just unreadable: what it wanted
to do with "-=" was really assign a negative number, not decrement.  Fix
up accordingly.

Reported-by: Laurent Desnogues <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
 linux-user/arm/nwfpe/fpa11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/linux-user/arm/nwfpe/fpa11.c b/linux-user/arm/nwfpe/fpa11.c
index c4461e0..17a6048 100644
--- a/linux-user/arm/nwfpe/fpa11.c
+++ b/linux-user/arm/nwfpe/fpa11.c
@@ -191,7 +191,7 @@ unsigned int EmulateAll(unsigned int opcode, FPA11* qfpa, 
CPUARMState* qregs)
   if(nRc == 1 && get_float_exception_flags(&fpa11->fp_status))
   {
     //printf("fef 0x%x\n",float_exception_flags);
-    nRc -= get_float_exception_flags(&fpa11->fp_status);
+    nRc = -get_float_exception_flags(&fpa11->fp_status);
   }
 
   //printf("returning %d\n",nRc);
-- 
1.6.5.rc2




reply via email to

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