Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Add xgetbv/xsetbv instructions support for precord.
@ 2009-10-09 13:37 Jiang Jilin
  2009-10-09 17:21 ` Joel Brobecker
  2009-10-09 22:26 ` Michael Snyder
  0 siblings, 2 replies; 12+ messages in thread
From: Jiang Jilin @ 2009-10-09 13:37 UTC (permalink / raw)
  To: Hui Zhu, Michael Snyder; +Cc: gdb-patches ml, Jiang Jilin

2009-10-09  Jiang Jilin  <freephp@gmail.com>

	* i386-tdep.c (i386_process_record): Add xgetbv/xsetbv instructions support
---
 gdb/i386-tdep.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index b79bcd2..1efe07f 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -5172,6 +5172,19 @@ reswitch:
 	  break;
 	  /* lgdt */
 	case 2:
+	  if (ir.mod == 3)
+	    {
+	      /* xgetbv */
+	      if (ir.rm == 0)
+		{
+		  I386_RECORD_ARCH_LIST_ADD_REG (X86_RECORD_REAX_REGNUM);
+		  I386_RECORD_ARCH_LIST_ADD_REG (X86_RECORD_REDX_REGNUM);
+		  break;
+		}
+	      /* xsetbv */
+	      else if (ir.rm == 1)
+		break;
+	    }
 	  /* lidt */
 	case 3:
 	  if (ir.mod == 3)
-- 
1.5.4.3


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

end of thread, other threads:[~2009-10-13  8:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-09 13:37 [PATCH] Add xgetbv/xsetbv instructions support for precord Jiang Jilin
2009-10-09 17:21 ` Joel Brobecker
     [not found]   ` <7d77a27d0910091838l76217714m92a55afc2fdf25f3@mail.gmail.com>
2009-10-10  2:33     ` Joel Brobecker
2009-10-10  2:46       ` Jiang Jilin
2009-10-10  4:59         ` Joel Brobecker
2009-10-10  7:57       ` Hui Zhu
2009-10-10  8:10         ` Jiang Jilin
2009-10-10  8:14         ` Jiang Jilin
2009-10-09 22:26 ` Michael Snyder
2009-10-12  8:00   ` Jiang Jilin
2009-10-12 15:43     ` Michael Snyder
2009-10-13  8:48       ` Jiang Jilin

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