summaryrefslogtreecommitdiffstats
path: root/linux-user/arm/nwfpe
diff options
context:
space:
mode:
authorMichael S. Tsirkin2009-09-30 19:44:18 +0200
committerBlue Swirl2009-09-30 20:45:50 +0200
commit5d024825be86255d4bf99f9f8004b7b21493147f (patch)
tree8af674e0440ee039913881df0a49171cd4452734 /linux-user/arm/nwfpe
parenttwl92230: fix old style increment/decrement usage (diff)
downloadqemu-5d024825be86255d4bf99f9f8004b7b21493147f.tar.gz
qemu-5d024825be86255d4bf99f9f8004b7b21493147f.tar.xz
qemu-5d024825be86255d4bf99f9f8004b7b21493147f.zip
linux-user: fix old style decrement usage
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>
Diffstat (limited to 'linux-user/arm/nwfpe')
-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 3ff80ebc88..c4461e010a 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);