[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] target/mips: Don't check COP1X for 64 bit FP mode
From: |
Jiaxun Yang |
Subject: |
[PATCH 1/2] target/mips: Don't check COP1X for 64 bit FP mode |
Date: |
Wed, 2 Nov 2022 16:57:18 +0000 |
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
- [PATCH 1/2] target/mips: Don't check COP1X for 64 bit FP mode,
Jiaxun Yang <=
- Prev by Date:
[PULL v2 00/82] pci,pc,virtio: features, tests, fixes, cleanups
- Next by Date:
[PATCH 2/2] target/mips: Correct check for CABS instructions
- Previous by thread:
[PULL v2 00/82] pci,pc,virtio: features, tests, fixes, cleanups
- Next by thread:
[PATCH 2/2] target/mips: Correct check for CABS instructions
- Index(es):