qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] target/mips: Fix FTRUNC_S and FTRUNC_U trans helper


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] target/mips: Fix FTRUNC_S and FTRUNC_U trans helper
Date: Mon, 30 May 2022 16:21:00 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

On 3/5/22 16:42, nihui wrote:
Fix the FTRUNC_S and FTRUNC_U trans helper problem.

Signed-off-by: nihui <shuizhuyuanluo@126.com>
---
  target/mips/tcg/msa_translate.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/mips/tcg/msa_translate.c b/target/mips/tcg/msa_translate.c
index 0b3dd0957c..1bcdbb1121 100644
--- a/target/mips/tcg/msa_translate.c
+++ b/target/mips/tcg/msa_translate.c
@@ -752,8 +752,8 @@ static bool trans_msa_2rf(DisasContext *ctx, arg_msa_r *a,
  }
TRANS(FCLASS, trans_msa_2rf, gen_helper_msa_fclass_df);
-TRANS(FTRUNC_S, trans_msa_2rf, gen_helper_msa_fclass_df);
-TRANS(FTRUNC_U, trans_msa_2rf, gen_helper_msa_ftrunc_s_df);
+TRANS(FTRUNC_S, trans_msa_2rf, gen_helper_msa_ftrunc_s_df);
+TRANS(FTRUNC_U, trans_msa_2rf, gen_helper_msa_ftrunc_u_df);
  TRANS(FSQRT,    trans_msa_2rf, gen_helper_msa_fsqrt_df);
  TRANS(FRSQRT,   trans_msa_2rf, gen_helper_msa_frsqrt_df);
  TRANS(FRCP,     trans_msa_2rf, gen_helper_msa_frcp_df);

Fixes: 5c5b64000c ("target/mips: Convert MSA 2RF instruction format to decodetree")

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

Queued.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]