[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [qemu-xen master] target-m68k: fix muluw/mulsw



commit 4a18cd44f3c905d443c26e26bb9b09932606d1a3
Author:     Laurent Vivier <laurent@xxxxxxxxx>
AuthorDate: Thu Nov 24 09:31:32 2016 +0100
Commit:     Laurent Vivier <laurent@xxxxxxxxx>
CommitDate: Thu Nov 24 16:24:27 2016 +0100

    target-m68k: fix muluw/mulsw
    
    "The multiplier and multiplicand are both word operands, and the result
    is a long-word operand."
    
    So compute flags on a long-word result, not on a word result.
    
    Signed-off-by: Laurent Vivier <laurent@xxxxxxxxx>
    Reviewed-by: Richard Henderson <rth@xxxxxxxxxxx>
---
 target-m68k/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target-m68k/translate.c b/target-m68k/translate.c
index d2d6816..d6ed883 100644
--- a/target-m68k/translate.c
+++ b/target-m68k/translate.c
@@ -1186,7 +1186,7 @@ DISAS_INSN(mulw)
     SRC_EA(env, src, OS_WORD, sign, NULL);
     tcg_gen_mul_i32(tmp, tmp, src);
     tcg_gen_mov_i32(reg, tmp);
-    gen_logic_cc(s, tmp, OS_WORD);
+    gen_logic_cc(s, tmp, OS_LONG);
 }
 
 DISAS_INSN(divw)
--
generated by git-patchbot for /home/xen/git/qemu-xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.