[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 04/19] target-mips: stop translation after ctc1
From: |
Yongbok Kim |
Subject: |
[Qemu-devel] [PATCH v3 04/19] target-mips: stop translation after ctc1 |
Date: |
Sat, 1 Nov 2014 05:28:38 +0000 |
stop translation as ctc1 instruction can change hflags
Reviewed-by: James Hogan <address@hidden>
Signed-off-by: Yongbok Kim <address@hidden>
---
target-mips/translate.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/target-mips/translate.c b/target-mips/translate.c
index 9a8f5c9..b388ba5 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -7490,12 +7490,15 @@ static void gen_mttr(CPUMIPSState *env, DisasContext
*ctx, int rd, int rt,
break;
case 3:
/* XXX: For now we support only a single FPU context. */
+ save_cpu_state(ctx, 1);
{
TCGv_i32 fs_tmp = tcg_const_i32(rd);
gen_helper_0e2i(ctc1, t0, fs_tmp, rt);
tcg_temp_free_i32(fs_tmp);
}
+ /* Stop translation as we may have changed hflags */
+ ctx->bstate = BS_STOP;
break;
/* COP2: Not implemented. */
case 4:
@@ -8089,12 +8092,15 @@ static void gen_cp1 (DisasContext *ctx, uint32_t opc,
int rt, int fs)
break;
case OPC_CTC1:
gen_load_gpr(t0, rt);
+ save_cpu_state(ctx, 1);
{
TCGv_i32 fs_tmp = tcg_const_i32(fs);
gen_helper_0e2i(ctc1, t0, fs_tmp, rt);
tcg_temp_free_i32(fs_tmp);
}
+ /* Stop translation as we may have changed hflags */
+ ctx->bstate = BS_STOP;
opn = "ctc1";
break;
#if defined(TARGET_MIPS64)
--
1.7.4
- [Qemu-devel] [PATCH v3 00/19] target-mips: add MSA module, Yongbok Kim, 2014/11/01
- [Qemu-devel] [PATCH v3 01/19] target-mips: add MSA defines and data structure, Yongbok Kim, 2014/11/01
- [Qemu-devel] [PATCH v3 02/19] target-mips: add MSA exceptions, Yongbok Kim, 2014/11/01
- [Qemu-devel] [PATCH v3 03/19] target-mips: remove duplicated mips/ieee mapping function, Yongbok Kim, 2014/11/01
- [Qemu-devel] [PATCH v3 04/19] target-mips: stop translation after ctc1,
Yongbok Kim <=
- [Qemu-devel] [PATCH v3 05/19] target-mips: add MSA opcode enum, Yongbok Kim, 2014/11/01
- [Qemu-devel] [PATCH v3 06/19] target-mips: add msa_reset(), global msa register, Yongbok Kim, 2014/11/01
- [Qemu-devel] [PATCH v3 07/19] target-mips: add msa_helper.c, Yongbok Kim, 2014/11/01
- [Qemu-devel] [PATCH v3 08/19] target-mips: add MSA branch instructions, Yongbok Kim, 2014/11/01
- [Qemu-devel] [PATCH v3 09/19] target-mips: add MSA I8 format instructions, Yongbok Kim, 2014/11/01
- [Qemu-devel] [PATCH v3 10/19] target-mips: add MSA I5 format instruction, Yongbok Kim, 2014/11/01
- [Qemu-devel] [PATCH v3 11/19] target-mips: add MSA BIT format instructions, Yongbok Kim, 2014/11/01
- [Qemu-devel] [PATCH v3 12/19] target-mips: add MSA 3R format instructions, Yongbok Kim, 2014/11/01
- [Qemu-devel] [PATCH v3 13/19] target-mips: add MSA ELM format instructions, Yongbok Kim, 2014/11/01