Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Prec: add x86 insn rdtsc
@ 2010-04-06  6:05 Hui Zhu
  2010-04-08  6:53 ` Hui Zhu
  0 siblings, 1 reply; 4+ messages in thread
From: Hui Zhu @ 2010-04-06  6:05 UTC (permalink / raw)
  To: gdb-patches ml

Hi,

This patch add x86 insn rdtsc support for prec.

Please help me review it.

Thanks,
Hui

2010-04-06  Hui Zhu  <teawater@gmail.com>

	* i386-tdep.c (i386_process_record): Add support for insn
	rdtsc.


--- a/i386-tdep.c
+++ b/i386-tdep.c
@@ -4958,10 +4954,8 @@ reswitch:

       /* rdtsc */
     case 0x0f31:
-      printf_unfiltered (_("Process record doesn't support "
-			   "instruction rdtsc.\n"));
-      ir.addr -= 2;
-      goto no_support;
+      I386_RECORD_ARCH_LIST_ADD_REG (X86_RECORD_REAX_REGNUM);
+      I386_RECORD_ARCH_LIST_ADD_REG (X86_RECORD_REDX_REGNUM);
       break;

       /* sysenter */


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-08  9:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-06  6:05 [RFA] Prec: add x86 insn rdtsc Hui Zhu
2010-04-08  6:53 ` Hui Zhu
2010-04-08  9:12   ` Mark Kettenis
2010-04-08  9:28     ` Hui Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox