linux-user: fix old style decrement usage
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 30 Sep 2009 17:44:18 +0000 (19:44 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 30 Sep 2009 18:45:50 +0000 (18:45 +0000)
Modern compilers do not parse "=-" as decrement:
you must use "-=" for that.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
linux-user/arm/nwfpe/fpa11.c

index 3ff80eb..c4461e0 100644 (file)
@@ -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);