Decode the 'xsave', 'xrstor', 'xsaveopt', 'xgetbv', 'xsetbv', and

'rdtscp' instructions.

MFC after:	1 month
This commit is contained in:
jhb 2012-07-04 16:47:39 +00:00
parent 58344b5c4d
commit 850f973fef

View File

@ -169,9 +169,9 @@ static const char * const db_Grp15[] = {
"fxrstor",
"ldmxcsr",
"stmxcsr",
"",
"",
"",
"xsave",
"xrstor",
"xsaveopt",
"clflush"
};
@ -1279,11 +1279,26 @@ db_disasm(loc, altfmt)
i_size = NONE;
i_mode = 0;
break;
case 0xd0:
i_name = "xgetbv";
i_size = NONE;
i_mode = 0;
break;
case 0xd1:
i_name = "xsetbv";
i_size = NONE;
i_mode = 0;
break;
case 0xf8:
i_name = "swapgs";
i_size = NONE;
i_mode = 0;
break;
case 0xf9:
i_name = "rdtscp";
i_size = NONE;
i_mode = 0;
break;
}
}
if (ip->i_extra == db_Grp15 && f_mod(rex, regmodrm) == 3) {