projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c811cf2
)
Fix ddivu for 32bit hosts, by Aurelien Jarno.
author
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 28 May 2007 17:36:30 +0000
(17:36 +0000)
committer
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 28 May 2007 17:36:30 +0000
(17:36 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2890
c046a42c
-6fe2-441c-8c8c-
71466251a162
target-mips/op_helper.c
patch
|
blob
|
history
diff --git
a/target-mips/op_helper.c
b/target-mips/op_helper.c
index 9092ffc39d12d4e6872e6742745c00b451eeb9d9..3d99d06fd7a112be213a07efd90e917592345c08 100644
(file)
--- a/
target-mips/op_helper.c
+++ b/
target-mips/op_helper.c
@@
-237,16
+237,16
@@
void do_ddiv (void)
}
}
+#if TARGET_LONG_BITS > HOST_LONG_BITS
void do_ddivu (void)
{
if (T1 != 0) {
- /* XXX: lldivu? */
- lldiv_t res = lldiv(T0, T1);
- env->LO = (uint64_t)res.quot;
- env->HI = (uint64_t)res.rem;
+ env->LO = T0 / T1;
+ env->HI = T0 % T1;
}
}
#endif
+#endif /* TARGET_MIPS64 */
#if defined(CONFIG_USER_ONLY)
void do_mfc0_random (void)