Skip to contentSkip to conversation

target-mips: Fix Loongson multimedia 'or' instruction.

PATCH Superseded Heiher 2 participants 2 messages Oct 13, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Heiher

author
#0 lore raw

PATCH 1/2 target-mips: Fix Loongson multimedia 'or' instruction.

From: Heiher <[email protected]>

---
 target-mips/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-mips/translate.c +1 -1
index ed67180..139f249 100644
@@ -3947,7 +3947,7 @@ 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(OR, or, or);
+    LMI_DIRECT(OR_CP2, or, or);
     LMI_DIRECT_SWAP(PANDN, pandn, andc);
 
     case OPC_PINSRH_0:
Signature · 1 line
2.10.0
Reviewed-by on v1 1/2
#1 lore raw
Quoted 14 lines · Heiher

From: Heiher <[email protected]>

---
 target-mips/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-mips/translate.c +0 -0
index ed67180..139f249 100644

target-mips/translate.c static void gen_loongson_multimedia(DisasContext *ctx, int rd, int rs, int rt) · line 3953

Quoted 8 lines
target-mips/translate.c +1 -1
@@ -3947,7 +3947,7 @@ 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(OR, or, or);
+    LMI_DIRECT(OR_CP2, or, or);
     LMI_DIRECT_SWAP(PANDN, pandn, andc);
 
     case OPC_PINSRH_0:

Perhaps you can squash these patches into one as those are simple changes.

Regards,
Yongbok