qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [5548] CRIS: Avoid cpu_T[1] for move_r.
Date: Mon, 27 Oct 2008 13:55:28 +0000	[thread overview]
Message-ID: <E1KuSZ6-0008CL-Cc@cvs.savannah.gnu.org> (raw)

Revision: 5548
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5548
Author:   edgar_igl
Date:     2008-10-27 13:55:28 +0000 (Mon, 27 Oct 2008)

Log Message:
-----------
CRIS: Avoid cpu_T[1] for move_r.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>

Modified Paths:
--------------
    trunk/target-cris/translate.c

Modified: trunk/target-cris/translate.c
===================================================================
--- trunk/target-cris/translate.c	2008-10-27 13:52:44 UTC (rev 5547)
+++ trunk/target-cris/translate.c	2008-10-27 13:55:28 UTC (rev 5548)
@@ -1330,7 +1330,7 @@
 }
 
 static inline void dec_prep_move_r(DisasContext *dc, int rs, int rd,
-			    int size, int s_ext, TCGv dst)
+				   int size, int s_ext, TCGv dst)
 {
 	if (s_ext)
 		t_gen_sext(dst, cpu_R[rs], size);
@@ -1603,10 +1603,14 @@
 		cris_update_result(dc, cpu_R[dc->op2]);
 	}
 	else {
-		dec_prep_move_r(dc, dc->op1, dc->op2, size, 0, cpu_T[1]);
+		TCGv t0;
+
+		t0 = tcg_temp_new(TCG_TYPE_TL);
+		dec_prep_move_r(dc, dc->op1, dc->op2, size, 0, t0);
 		cris_alu(dc, CC_OP_MOVE,
 			 cpu_R[dc->op2],
-			 cpu_R[dc->op2], cpu_T[1], size);
+			 cpu_R[dc->op2], t0, size);
+		tcg_temp_free(t0);
 	}
 	return 2;
 }

                 reply	other threads:[~2008-10-27 13:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=E1KuSZ6-0008CL-Cc@cvs.savannah.gnu.org \
    --to=edgar.iglesias@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /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).