From: James Hogan <james.hogan@imgtec.com>
To: Yongbok Kim <yongbok.kim@imgtec.com>
Cc: leon.alrae@imgtec.com, qemu-devel@nongnu.org, aurelien@aurel32.net
Subject: Re: [Qemu-devel] [PATCH v2 05/20] target-mips: stop translation after ctc1
Date: Wed, 29 Oct 2014 10:26:44 +0000 [thread overview]
Message-ID: <20141029102644.GH7778@jhogan-linux.le.imgtec.org> (raw)
In-Reply-To: <1414546928-54642-6-git-send-email-yongbok.kim@imgtec.com>
On Wed, Oct 29, 2014 at 01:41:53AM +0000, Yongbok Kim wrote:
> stop translation as ctc1 instruction can change hflags
>
> Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Cheers
James
> ---
> 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
>
>
next prev parent reply other threads:[~2014-10-29 10:26 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-29 1:41 [Qemu-devel] [PATCH v2 00/20] target-mips: add MSA module Yongbok Kim
2014-10-29 1:41 ` [Qemu-devel] [PATCH v2 01/20] target-mips: add MSA defines and data structure Yongbok Kim
2014-10-29 9:50 ` James Hogan
2014-10-29 1:41 ` [Qemu-devel] [PATCH v2 02/20] target-mips: add MSA exceptions Yongbok Kim
2014-10-29 9:56 ` James Hogan
2014-10-29 1:41 ` [Qemu-devel] [PATCH v2 03/20] target-mips: remove duplicated mips/ieee mapping function Yongbok Kim
2014-10-29 10:04 ` James Hogan
2014-10-29 22:55 ` Leon Alrae
2014-10-29 1:41 ` [Qemu-devel] [PATCH v2 04/20] target-mips: add 16, 64 bit load and store Yongbok Kim
2014-10-29 10:21 ` James Hogan
2014-10-29 22:56 ` Leon Alrae
2014-10-29 1:41 ` [Qemu-devel] [PATCH v2 05/20] target-mips: stop translation after ctc1 Yongbok Kim
2014-10-29 10:26 ` James Hogan [this message]
2014-10-29 1:41 ` [Qemu-devel] [PATCH v2 06/20] target-mips: add MSA opcode enum Yongbok Kim
2014-10-29 1:41 ` [Qemu-devel] [PATCH v2 07/20] target-mips: add msa_reset(), global msa register Yongbok Kim
2014-10-29 10:36 ` James Hogan
2014-11-05 17:36 ` Richard Henderson
2014-10-29 1:41 ` [Qemu-devel] [PATCH v2 08/20] target-mips: add msa_helper.c Yongbok Kim
2014-10-29 10:50 ` James Hogan
2014-10-29 22:57 ` Leon Alrae
2014-11-05 17:38 ` Richard Henderson
2014-10-29 1:41 ` [Qemu-devel] [PATCH v2 09/20] target-mips: add MSA branch instructions Yongbok Kim
2014-10-29 11:19 ` James Hogan
2014-11-05 17:41 ` Richard Henderson
2014-10-29 1:41 ` [Qemu-devel] [PATCH v2 10/20] target-mips: add MSA I8 format instructions Yongbok Kim
2014-10-29 11:38 ` James Hogan
2014-11-05 17:43 ` Richard Henderson
2014-11-06 11:49 ` Yongbok Kim
2014-10-29 1:41 ` [Qemu-devel] [PATCH v2 11/20] target-mips: add MSA I5 format instruction Yongbok Kim
2014-10-29 23:23 ` James Hogan
2014-10-29 23:27 ` Leon Alrae
2014-10-29 1:42 ` [Qemu-devel] [PATCH v2 12/20] target-mips: add MSA BIT format instructions Yongbok Kim
2014-10-30 8:02 ` Leon Alrae
2014-10-29 1:42 ` [Qemu-devel] [PATCH v2 13/20] target-mips: add MSA 3R " Yongbok Kim
2014-10-29 1:42 ` [Qemu-devel] [PATCH v2 14/20] target-mips: add MSA ELM " Yongbok Kim
2014-10-29 1:42 ` [Qemu-devel] [PATCH v2 15/20] target-mips: add MSA 3RF " Yongbok Kim
2014-10-29 1:42 ` [Qemu-devel] [PATCH v2 16/20] target-mips: add MSA VEC/2R " Yongbok Kim
2014-10-29 1:42 ` [Qemu-devel] [PATCH v2 17/20] target-mips: add MSA 2RF " Yongbok Kim
2014-10-29 1:42 ` [Qemu-devel] [PATCH v2 18/20] target-mips: add MSA MI10 " Yongbok Kim
2014-10-29 1:42 ` [Qemu-devel] [PATCH v2 19/20] disas/mips.c: disassemble MSA instructions Yongbok Kim
2014-10-29 1:42 ` [Qemu-devel] [PATCH v2 20/20] target-mips: add MSA support to mips32r5-generic Yongbok Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141029102644.GH7778@jhogan-linux.le.imgtec.org \
--to=james.hogan@imgtec.com \
--cc=aurelien@aurel32.net \
--cc=leon.alrae@imgtec.com \
--cc=qemu-devel@nongnu.org \
--cc=yongbok.kim@imgtec.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).