linux-user: fix up oversealous nitpicking
PATCH 1/1 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 <[email protected]>
Signed-off-by Michael S. Tsirkin <[email protected]>
--- linux-user/arm/nwfpe/fpa11.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
linux-user/arm/nwfpe/fpa11.c +1 -1
@@ -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);
Signature · 1 line
1.6.5.rc2