aboutsummaryrefslogtreecommitdiff
path: root/target-alpha/op.c
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-25 23:34:44 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-25 23:34:44 +0000
commite14fe0a921631ab6cf1f404ad6243a716cb84366 (patch)
treecad065364e93f979512f4fc579bb2846149aa643 /target-alpha/op.c
parent9d901a201bc37bbb40ca8fa325866cba047ec701 (diff)
Use host-utils for Alpha 64x64 bits multiplications.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3443 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-alpha/op.c')
-rw-r--r--target-alpha/op.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/target-alpha/op.c b/target-alpha/op.c
index 409325221a..2a52be4f49 100644
--- a/target-alpha/op.c
+++ b/target-alpha/op.c
@@ -295,7 +295,7 @@ void OPPROTO op_mullv (void)
void OPPROTO op_mulq (void)
{
- T0 *= T1;
+ T0 = (int64_t)T0 * (int64_t)T1;
RETURN();
}
@@ -307,7 +307,10 @@ void OPPROTO op_mulqv (void)
void OPPROTO op_umulh (void)
{
- helper_umulh();
+ uint64_t tl, th;
+
+ mulu64(&tl, &th, T0, T1);
+ T0 = th;
RETURN();
}