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 <laurent.desnogues@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Michael S. Tsirkin 2009-10-02 17:59:12 +00:00 committed by Blue Swirl
parent 58458bb47f
commit 22e4104079
1 changed files with 1 additions and 1 deletions

View 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);