This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

psim: add read of tbrl/tbru


Hi,

This has been in the RTEMS GDB patch since at
least 6.7.  Ok to commit?

2008-12-04 Joel Sherrill <joel.sherrill@oarcorp.com>

   * ppc-instructions, ppc-spr-table: Add ability
   to read tbrl and tbru special registers.

--
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
  Support Available             (256) 722-9985


Index: ppc-instructions
===================================================================
RCS file: /cvs/src/src/sim/ppc/ppc-instructions,v
retrieving revision 1.9
diff -u -r1.9 ppc-instructions
--- ppc-instructions	29 Nov 2006 15:20:55 -0000	1.9
+++ ppc-instructions	10 Nov 2008 15:29:26 -0000
@@ -3402,6 +3402,14 @@
 	    case spr_dec:
 	      *rT = cpu_get_decrementer(processor);
 	      break;
+		case spr_tbrl:
+	  	  if (is_64bit_implementation) *rT = TB;
+	  	  else                         *rT = EXTRACTED64(TB, 32, 63);
+		break;
+		case spr_tbru:
+	  	  if (is_64bit_implementation) *rT = EXTRACTED64(TB, 0, 31);
+		  else                         *rT = EXTRACTED64(TB, 0, 31);
+		break;
 	    case spr_tbu:
 	    case spr_tbl:
 	      /* NOTE - these SPR's are not readable. Use mftb[ul] */
Index: ppc-spr-table
===================================================================
RCS file: /cvs/src/src/sim/ppc/ppc-spr-table,v
retrieving revision 1.3
diff -u -r1.3 ppc-spr-table
--- ppc-spr-table	22 Jun 2003 16:48:12 -0000	1.3
+++ ppc-spr-table	10 Nov 2008 15:29:26 -0000
@@ -32,6 +32,8 @@
 SRR0:26:0:0
 SRR1:27:0:0
 VRSAVE:256:0:0
+TBRL:268:0:0
+TBRU:269:0:0
 SPRG0:272:0:0
 SPRG1:273:0:0
 SPRG2:274:0:0

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]