[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 7/7] target/mips: Eliminate unreachable case for
From: |
Mateja Marjanovic |
Subject: |
[Qemu-devel] [PATCH v2 7/7] target/mips: Eliminate unreachable case for MSA instructions fill |
Date: |
Mon, 25 Mar 2019 15:52:46 +0100 |
From: Mateja Marjanovic <address@hidden>
The fill instruction doesn't support doublewords for
MIPS32 [2] (page 178), but MIPS64 supports doubleword [1] (page 179).
[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 5aea675..655148d 100644
--- a/target/mips/msa_helper.c
+++ b/target/mips/msa_helper.c
@@ -1649,11 +1649,13 @@ void helper_msa_fill_df(CPUMIPSState *env, uint32_t df,
uint32_t wd,
pwd->w[i] = (int32_t)env->active_tc.gpr[rs];
}
break;
+#ifdef TARGET_MIPS64
case DF_DOUBLE:
for (i = 0; i < DF_ELEMENTS(DF_DOUBLE); i++) {
pwd->d[i] = (int64_t)env->active_tc.gpr[rs];
}
break;
+#endif
default:
assert(0);
}
--
2.7.4
- [Qemu-devel] [PATCH v2 4/7] target/mips: Fix insert.<b|h|w> for MIPS big endian host, (continued)
- [Qemu-devel] [PATCH v2 4/7] target/mips: Fix insert.<b|h|w> for MIPS big endian host, Mateja Marjanovic, 2019/03/25
- [Qemu-devel] [PATCH v2 5/7] target/mips: Eliminate unreachable case for MSA instructions copy_u, Mateja Marjanovic, 2019/03/25
- [Qemu-devel] [PATCH v2 2/7] target/mips: Fix copy_s.<b|h|w> for MIPS big endian host, Mateja Marjanovic, 2019/03/25
- [Qemu-devel] [PATCH v2 1/7] target/mips: Fix <ld|st>.<b|h|w|d> MSA instructions for MIPS big endian host, Mateja Marjanovic, 2019/03/25
- [Qemu-devel] [PATCH v2 3/7] target/mips: Fix copy_u.<b|h|w> for MIPS big endian host, Mateja Marjanovic, 2019/03/25
- [Qemu-devel] [PATCH v2 6/7] target/mips: Eliminate unreachable case for MSA instructions insert, Mateja Marjanovic, 2019/03/25
- [Qemu-devel] [PATCH v2 7/7] target/mips: Eliminate unreachable case for MSA instructions fill,
Mateja Marjanovic <=
- Re: [Qemu-devel] [PATCH v2 0/7] target/mips: Add support for MSA instructions on a big endian host, Aleksandar Markovic, 2019/03/25