Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: cgd@broadcom.com
To: gdb-patches@sources.redhat.com
Subject: [applied mips sim patch] trace "d" shift instructions.
Date: Fri, 01 Mar 2002 15:26:00 -0000	[thread overview]
Message-ID: <yov5u1rzrht2.fsf@broadcom.com> (raw)

When looking through my list of old patches, I noticed that in the
last few days i'd gotten around to putting in some changes which i'd
submitted back in 12/2002...  (I'd forgotten about my old patches.)

That led me to wondering what else of those i was missing.  This is
one chunk.

(verified that various sims still build w/ it.)

===================================================================
2002-03-01  Chris Demetriou  <cgd@broadcom.com>

	* mips.igen (do_dsll, do_dsllv, DSLL32, do_dsra, DSRA32, do_dsrl,
	DSRL32, do_dsrlv): Trace inputs and results.

Index: mips.igen
===================================================================
RCS file: /cvs/src/src/sim/mips/mips.igen,v
retrieving revision 1.22
diff -u -r1.22 mips.igen
--- mips.igen	2002/03/01 19:55:42	1.22
+++ mips.igen	2002/03/01 23:23:34
@@ -1180,13 +1180,17 @@
 
 :function:::void:do_dsll:int rt, int rd, int shift
 {
+  TRACE_ALU_INPUT2 (GPR[rt], shift);
   GPR[rd] = GPR[rt] << shift;
+  TRACE_ALU_RESULT (GPR[rd]);
 }
 
 :function:::void:do_dsllv:int rs, int rt, int rd
 {
   int s = MASKED64 (GPR[rs], 5, 0);
+  TRACE_ALU_INPUT2 (GPR[rt], s);
   GPR[rd] = GPR[rt] << s;
+  TRACE_ALU_RESULT (GPR[rd]);
 }
 
 
@@ -1213,7 +1217,9 @@
 {
   int s = 32 + SHIFT;
   check_u64 (SD_, instruction_0);
+  TRACE_ALU_INPUT2 (GPR[RT], s);
   GPR[RD] = GPR[RT] << s;
+  TRACE_ALU_RESULT (GPR[RD]);
 }
 
 000000,5.RS,5.RT,5.RD,00000,010100:SPECIAL:64::DSLLV
@@ -1230,7 +1236,9 @@
 
 :function:::void:do_dsra:int rt, int rd, int shift
 {
+  TRACE_ALU_INPUT2 (GPR[rt], shift);
   GPR[rd] = ((signed64) GPR[rt]) >> shift;
+  TRACE_ALU_RESULT (GPR[rd]);
 }
 
 
@@ -1257,7 +1265,9 @@
 {
   int s = 32 + SHIFT;
   check_u64 (SD_, instruction_0);
+  TRACE_ALU_INPUT2 (GPR[RT], s);
   GPR[RD] = ((signed64) GPR[RT]) >> s;
+  TRACE_ALU_RESULT (GPR[RD]);
 }
 
 
@@ -1283,7 +1293,9 @@
 
 :function:::void:do_dsrl:int rt, int rd, int shift
 {
+  TRACE_ALU_INPUT2 (GPR[rt], shift);
   GPR[rd] = (unsigned64) GPR[rt] >> shift;
+  TRACE_ALU_RESULT (GPR[rd]);
 }
 
 
@@ -1310,14 +1322,18 @@
 {
   int s = 32 + SHIFT;
   check_u64 (SD_, instruction_0);
+  TRACE_ALU_INPUT2 (GPR[RT], s);
   GPR[RD] = (unsigned64) GPR[RT] >> s;
+  TRACE_ALU_RESULT (GPR[RD]);
 }
 
 
 :function:::void:do_dsrlv:int rs, int rt, int rd
 {
   int s = MASKED64 (GPR[rs], 5, 0);
+  TRACE_ALU_INPUT2 (GPR[rt], s);
   GPR[rd] = (unsigned64) GPR[rt] >> s;
+  TRACE_ALU_RESULT (GPR[rd]);
 }
 
 


             reply	other threads:[~2002-03-01 23:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-01 15:26 cgd [this message]
     [not found] ` <mailpost.1015025187.23583@news-sj1-1>
2002-03-01 15:36   ` cgd
2002-03-03  3:53 ` Eli Zaretskii
2002-03-03 12:17   ` cgd

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=yov5u1rzrht2.fsf@broadcom.com \
    --to=cgd@broadcom.com \
    --cc=gdb-patches@sources.redhat.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