qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH v2 6/7] target/mips: Eliminate unreachable case for


From: Mateja Marjanovic
Subject: [Qemu-devel] [PATCH v2 6/7] target/mips: Eliminate unreachable case for MSA instructions insert
Date: Mon, 25 Mar 2019 15:52:45 +0100

From: Mateja Marjanovic <address@hidden>

The insert instruction doesn't support doublewords for
MIPS32 [2] (page 223), but MIPS64 supports doubleword [1] (page 224).

[1] MIPS Architecture for Programmers
    Volume IV-j: The MIPS64 SIMD
    Architecture Module
[2] MIPS Architecture for Programmers
    Volume IV-j: The MIPS32 SIMD
    Architecture Module

Signed-off-by: Mateja Marjanovic <address@hidden>
---
 target/mips/msa_helper.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/mips/msa_helper.c b/target/mips/msa_helper.c
index f368f79..5aea675 100644
--- a/target/mips/msa_helper.c
+++ b/target/mips/msa_helper.c
@@ -1515,9 +1515,11 @@ void helper_msa_insert_df(CPUMIPSState *env, uint32_t 
df, uint32_t wd,
     case DF_WORD:
         pwd->w[n] = (int32_t)rs;
         break;
+#ifdef TARGET_MIPS64
     case DF_DOUBLE:
         pwd->d[n] = (int64_t)rs;
         break;
+#endif
     default:
         assert(0);
     }
-- 
2.7.4




reply via email to

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