Fix PowerPC 64x64 bits multiplication overflow check.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3444 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
j_mayer 2007-10-25 23:36:08 +00:00
parent e14fe0a921
commit 88ad920b8a

View File

@ -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;