target-mips: Fix Loongson multimedia 'or' instruction.
PATCH 1/2 target-mips: Fix Loongson multimedia 'or' instruction.
From: Heiher <[email protected]>
Signed-off-by Heiher <[email protected]>
Signed-off-by Fuxin Zhang <[email protected]>
--- target-mips/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 :
Signature · 1 line
2.10.0
Quoted 14 lines · Heiher
From: Heiher <[email protected]>
Signed-off-by Heiher <[email protected]>Signed-off-by Fuxin Zhang <[email protected]>--- target-mips/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)target-mips/translate.c +0
-0
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.
Reviewed-by Yongbok Kim <[email protected]>
Regards,
Yongbok