qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] target/mips: Don't check COP1X for 64 bit FP mode
@ 2022-11-02 16:57 Jiaxun Yang
  2022-11-02 16:57 ` [PATCH 2/2] target/mips: Correct check for CABS instructions Jiaxun Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jiaxun Yang @ 2022-11-02 16:57 UTC (permalink / raw)
  To: qemu-devel; +Cc: f4bug, Jiaxun Yang

Some implementations (i.e. Loongson-2F) may decide to implement a 64 bit
FPU without implmenting COP1X instructions.

As the eligibility of 64 bit FP instructions is already determined by
CP0St_FR, there is no need to check for COP1X again.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
 target/mips/tcg/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/mips/tcg/translate.c b/target/mips/tcg/translate.c
index 2f2d707a12..e49d2a25a8 100644
--- a/target/mips/tcg/translate.c
+++ b/target/mips/tcg/translate.c
@@ -1545,7 +1545,7 @@ void check_cop1x(DisasContext *ctx)
  */
 void check_cp1_64bitmode(DisasContext *ctx)
 {
-    if (unlikely(~ctx->hflags & (MIPS_HFLAG_F64 | MIPS_HFLAG_COP1X))) {
+    if (unlikely(~ctx->hflags & MIPS_HFLAG_F64) {
         gen_reserved_instruction(ctx);
     }
 }
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-11-08 11:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-02 16:57 [PATCH 1/2] target/mips: Don't check COP1X for 64 bit FP mode Jiaxun Yang
2022-11-02 16:57 ` [PATCH 2/2] target/mips: Correct check for CABS instructions Jiaxun Yang
2022-11-07 22:35   ` Philippe Mathieu-Daudé
2022-11-08 11:37     ` Jiaxun Yang
2022-11-07 22:47 ` [PATCH 1/2] target/mips: Don't check COP1X for 64 bit FP mode Philippe Mathieu-Daudé
2022-11-07 23:29   ` Philippe Mathieu-Daudé
2022-11-08 11:38     ` Jiaxun Yang
2022-11-07 23:22 ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).