diff mbox

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

Message ID 20161013070939.30648-1-r@hev.cc
State New
Headers show

Commit Message

hev Oct. 13, 2016, 7:09 a.m. UTC
From: Heiher <wangr@lemote.com>

Signed-off-by: Heiher <wangr@lemote.com>
Signed-off-by: Fuxin Zhang <zhangfx@lemote.com>
---
 target-mips/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Yongbok Kim Oct. 13, 2016, 4:41 p.m. UTC | #1
On 13/10/2016 08:09, Heiher wrote:
> From: Heiher <wangr@lemote.com>
> 
> Signed-off-by: Heiher <wangr@lemote.com>
> Signed-off-by: Fuxin Zhang <zhangfx@lemote.com>
> ---
>  target-mips/translate.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target-mips/translate.c b/target-mips/translate.c
> index ed67180..139f249 100644
> --- a/target-mips/translate.c
> +++ b/target-mips/translate.c
> @@ -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 <yongbok.kim@imgtec.com>

Regards,
Yongbok
diff mbox

Patch

diff --git a/target-mips/translate.c b/target-mips/translate.c
index ed67180..139f249 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -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: