提交 5d024825 编写于 作者: M Michael S. Tsirkin 提交者: Blue Swirl

linux-user: fix old style decrement usage

Modern compilers do not parse "=-" as decrement:
you must use "-=" for that.
Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 bdd7e1bc
...@@ -191,7 +191,7 @@ unsigned int EmulateAll(unsigned int opcode, FPA11* qfpa, CPUARMState* qregs) ...@@ -191,7 +191,7 @@ unsigned int EmulateAll(unsigned int opcode, FPA11* qfpa, CPUARMState* qregs)
if(nRc == 1 && get_float_exception_flags(&fpa11->fp_status)) if(nRc == 1 && get_float_exception_flags(&fpa11->fp_status))
{ {
//printf("fef 0x%x\n",float_exception_flags); //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); //printf("returning %d\n",nRc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册