summaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2009-10-02 17:59:12 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-10-02 17:59:12 +0000
commita75b94f12ea1a9fdf2cb932ceaed93fd0ddf1a29 (patch)
treed1f24d5a9b996236bf552f5138627aa6c710184e /linux-user
parent78d5f639cda7379a687893b15bdf17045ec16cff (diff)
downloadqemu-a75b94f12ea1a9fdf2cb932ceaed93fd0ddf1a29.tar.gz
qemu-a75b94f12ea1a9fdf2cb932ceaed93fd0ddf1a29.tar.bz2
qemu-a75b94f12ea1a9fdf2cb932ceaed93fd0ddf1a29.zip
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>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/arm/nwfpe/fpa11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/arm/nwfpe/fpa11.c b/linux-user/arm/nwfpe/fpa11.c
index c4461e010a..17a60486e3 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);