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

[Xen-changelog] [qemu-xen master] target-m68k: Fix cmpa operand size



commit 5436c29d78957a6825a93f0eb79dfab388641017
Author:     Laurent Vivier <laurent@xxxxxxxxx>
AuthorDate: Wed Nov 23 21:45:56 2016 +0100
Commit:     Laurent Vivier <laurent@xxxxxxxxx>
CommitDate: Thu Nov 24 09:39:05 2016 +0100

    target-m68k: Fix cmpa operand size
    
    "The size of the operation can be specified as word or long.
    Word length source operands are sign-extended to 32 bits for
    comparison."
    
    So comparison is always done using OS_LONG.
    
    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 8e522db..d2d6816 100644
--- a/target-m68k/translate.c
+++ b/target-m68k/translate.c
@@ -2170,7 +2170,7 @@ DISAS_INSN(cmpa)
     }
     SRC_EA(env, src, opsize, 1, NULL);
     reg = AREG(insn, 9);
-    gen_update_cc_cmp(s, reg, src, opsize);
+    gen_update_cc_cmp(s, reg, src, OS_LONG);
 }
 
 DISAS_INSN(eor)
--
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®.