From: Michael S. Tsirkin Date: Fri, 2 Oct 2009 17:59:12 +0000 (+0000) Subject: linux-user: fix up oversealous nitpicking X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~10406 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22e4104079a4a92a4800d516fc1d968a3e8b8157;p=sdk%2Femulator%2Fqemu.git linux-user: fix up oversealous nitpicking 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 Signed-off-by: Michael S. Tsirkin Signed-off-by: Blue Swirl --- 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);