summaryrefslogtreecommitdiff
path: root/target-ppc/op_helper.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-01 21:45:18 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-01 21:45:18 +0000
commit5bf06a9528698aa426a32f16e1ae3098b0239d63 (patch)
tree9796879b8b8e4271f4115513b6940e96151bebd6 /target-ppc/op_helper.c
parent66029f6a2f717873f2d170681f0250801a6d0d39 (diff)
downloadqemu-5bf06a9528698aa426a32f16e1ae3098b0239d63.tar.gz
target-ppc: fix mullw/mullwo
Based on patch by Julian Seward. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5379 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/op_helper.c')
-rw-r--r--target-ppc/op_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c
index 46e9b7ab6c..d398640278 100644
--- a/target-ppc/op_helper.c
+++ b/target-ppc/op_helper.c
@@ -227,7 +227,7 @@ void do_divduo (void)
void do_mullwo (void)
{
- int64_t res = (int64_t)T0 * (int64_t)T1;
+ int64_t res = (int64_t)(int32_t)T0 * (int64_t)(int32_t)T1;
if (likely((int32_t)res == res)) {
xer_ov = 0;