提交 88ad920b 编写于 作者: J j_mayer

Fix PowerPC 64x64 bits multiplication overflow check.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3444 c046a42c-6fe2-441c-8c8c-71466251a162
上级 e14fe0a9
......@@ -331,7 +331,8 @@ void do_mulldo (void)
uint64_t tl;
muls64(&tl, &th, T0, T1);
if (likely(th == 0)) {
/* If th != 0 && th != -1, then we had an overflow */
if (likely((th + 1) <= 1)) {
xer_ov = 0;
} else {
xer_ov = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册