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

[Xen-changelog] [qemu-xen master] target-mips: Fix Loongson pandn instruction.



commit 9099a36b4bb81f84004b77f08e58ac2c67eed0e7
Author:     Heiher <wangr@xxxxxxxxxx>
AuthorDate: Fri Oct 14 10:46:04 2016 +0800
Commit:     Yongbok Kim <yongbok.kim@xxxxxxxxxx>
CommitDate: Fri Dec 2 16:11:08 2016 +0000

    target-mips: Fix Loongson pandn instruction.
    
    pandn FD, FS, FT
    Operation: FD = ((NOT FS) AND FT)
    
    Signed-off-by: Heiher <wangr@xxxxxxxxxx>
    Signed-off-by: Fuxin Zhang <zhangfx@xxxxxxxxxx>
    Reviewed-by: Yongbok Kim <yongbok.kim@xxxxxxxxxx>
    Signed-off-by: Yongbok Kim <yongbok.kim@xxxxxxxxxx>
---
 target-mips/translate.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/target-mips/translate.c b/target-mips/translate.c
index d8dde7a..5ad97c7 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -3945,9 +3945,12 @@ static void gen_loongson_multimedia(DisasContext *ctx, 
int rd, int rs, int rt)
     LMI_DIRECT(XOR_CP2, xor, xor);
     LMI_DIRECT(NOR_CP2, nor, nor);
     LMI_DIRECT(AND_CP2, and, and);
-    LMI_DIRECT(PANDN, pandn, andc);
     LMI_DIRECT(OR, or, or);
 
+    case OPC_PANDN:
+        tcg_gen_andc_i64(t0, t1, t0);
+        break;
+
     case OPC_PINSRH_0:
         tcg_gen_deposit_i64(t0, t0, t1, 0, 16);
         break;
--
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®.