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]

[commit/rx sim] Add cycle information for smovu


I've committed the patch below.  It fixes a "Cycle count not updated!"
abort that I was seeing when running gdb.base/call-strs.exp.

Kevin

sim/rx/ChangeLog:

	* rx.c (decode_opcode): Add cycle information for RXO_smovu.

Index: rx.c
===================================================================
RCS file: /cvs/src/src/sim/rx/rx.c,v
retrieving revision 1.8
diff -u -p -r1.8 rx.c
--- rx.c	23 Sep 2010 23:42:53 -0000	1.8
+++ rx.c	24 Sep 2010 05:15:49 -0000
@@ -1818,6 +1818,9 @@ decode_opcode ()
       break;
 
     case RXO_smovu:
+#ifdef CYCLE_ACCURATE
+      tx = regs.r[3];
+#endif
       while (regs.r[3] != 0)
 	{
 	  uma = mem_get_qi (regs.r[2] ++);
@@ -1826,6 +1829,7 @@ decode_opcode ()
 	  if (uma == 0)
 	    break;
 	}
+      cycles (2 + 3 * (int)(tx / 4) + 3 * (tx % 4));
       break;
 
     case RXO_shar: /* d = ma >> mb */


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