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

* i386-tdep.c (i386_process_record): Add xgetbv/xsetbv
	instructions support.
This commit is contained in:
Michael Snyder 2009-10-12 15:52:28 +00:00
parent 1c7814eddb
commit 3800e64539
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-10-12 Jiang Jilin <freephp@gmail.com>
* i386-tdep.c (i386_process_record): Add xgetbv/xsetbv
instructions support.
2009-10-11 Pedro Alves <pedro@codesourcery.com>
* procfs.c (procfs_make_note_section): Go back to only outputing

View File

@ -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)