提交 14a1120e 编写于 作者: B blueswir1

Handle division by zero case in Sparc64 udivx and sdivx ops


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2767 c046a42c-6fe2-441c-8c8c-71466251a162
上级 5a1237c4
......@@ -926,12 +926,18 @@ void OPPROTO op_mulx_T1_T0(void)
void OPPROTO op_udivx_T1_T0(void)
{
if (T1 == 0) {
raise_exception(TT_DIV_ZERO);
}
T0 /= T1;
FORCE_RET();
}
void OPPROTO op_sdivx_T1_T0(void)
{
if (T1 == 0) {
raise_exception(TT_DIV_ZERO);
}
if (T0 == INT64_MIN && T1 == -1)
T0 = INT64_MIN;
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册