[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 12/12] target/mips: Correct helper for MSA FCLASS.<W|
From: |
Aleksandar Markovic |
Subject: |
[Qemu-devel] [PULL 12/12] target/mips: Correct helper for MSA FCLASS.<W|D> instructions |
Date: |
Tue, 2 Jul 2019 18:35:28 +0200 |
From: Aleksandar Markovic <address@hidden>
Correct helper for MSA FCLASS.<W|D> instructions.
Signed-off-by: Aleksandar Markovic <address@hidden>
Reviewed-by: Aleksandar Rikalo <address@hidden>
Message-Id: <address@hidden>
---
target/mips/msa_helper.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/target/mips/msa_helper.c b/target/mips/msa_helper.c
index 97f840b..a383c40 100644
--- a/target/mips/msa_helper.c
+++ b/target/mips/msa_helper.c
@@ -4058,9 +4058,11 @@ void helper_msa_fclass_df(CPUMIPSState *env, uint32_t df,
pwd->w[1] = float_class_s(pws->w[1], status);
pwd->w[2] = float_class_s(pws->w[2], status);
pwd->w[3] = float_class_s(pws->w[3], status);
- } else {
+ } else if (df == DF_DOUBLE) {
pwd->d[0] = float_class_d(pws->d[0], status);
pwd->d[1] = float_class_d(pws->d[1], status);
+ } else {
+ assert(0);
}
}
--
2.7.4
- [Qemu-devel] [PULL 00/12] MIPS queue for July 2nd, 2019, Aleksandar Markovic, 2019/07/02
- [Qemu-devel] [PULL 03/12] hw/mips: Express dependencies of the MIPSsim machine with Kconfig, Aleksandar Markovic, 2019/07/02
- [Qemu-devel] [PULL 04/12] hw/mips: Express dependencies of the Jazz machine with Kconfig, Aleksandar Markovic, 2019/07/02
- [Qemu-devel] [PULL 02/12] hw/mips: Explicit the semi-hosting feature is always required, Aleksandar Markovic, 2019/07/02
- [Qemu-devel] [PULL 10/12] target/mips: Correct comments in msa_helper.c, Aleksandar Markovic, 2019/07/02
- [Qemu-devel] [PULL 01/12] tests/machine-none: Test recent MIPS cpus, Aleksandar Markovic, 2019/07/02
- [Qemu-devel] [PULL 05/12] hw/mips: Express dependencies of the r4k platform with Kconfig, Aleksandar Markovic, 2019/07/02
- [Qemu-devel] [PULL 12/12] target/mips: Correct helper for MSA FCLASS.<W|D> instructions,
Aleksandar Markovic <=
- [Qemu-devel] [PULL 11/12] target/mips: Unroll loops for MSA float max/min instructions, Aleksandar Markovic, 2019/07/02
- [Qemu-devel] [PULL 08/12] tcg/tests: target/mips: Correct MSA test compilation and execution order, Aleksandar Markovic, 2019/07/02
- [Qemu-devel] [PULL 09/12] target/mips: Correct comments in translate.c, Aleksandar Markovic, 2019/07/02
- [Qemu-devel] [PULL 07/12] tcg/tests: target/mips: Amend MSA integer multiply tests, Aleksandar Markovic, 2019/07/02
- [Qemu-devel] [PULL 06/12] tcg/tests: target/mips: Amend MSA fixed point multiply tests, Aleksandar Markovic, 2019/07/02
- Re: [Qemu-devel] [PULL 00/12] MIPS queue for July 2nd, 2019, no-reply, 2019/07/02
- Re: [Qemu-devel] [PULL 00/12] MIPS queue for July 2nd, 2019, no-reply, 2019/07/03
- Re: [Qemu-devel] [PULL 00/12] MIPS queue for July 2nd, 2019, no-reply, 2019/07/03
- Re: [Qemu-devel] [PULL 00/12] MIPS queue for July 2nd, 2019, no-reply, 2019/07/03
- Re: [Qemu-devel] [PULL 00/12] MIPS queue for July 2nd, 2019, no-reply, 2019/07/03