PERFORCE change 213849 for review
John Baldwin
jhb at FreeBSD.org
Tue Jul 3 14:42:00 UTC 2012
http://p4web.freebsd.org/@@213849?ac=10
Change 213849 by jhb at jhb_ralph on 2012/07/03 14:41:27
Add decoding for 'xsave', 'xrstor', 'xsaveopt', 'vmcall',
'vmlaunch', 'vmresume', 'xgetbv', 'xsetbv', and 'rdtscp'.
Affected files ...
.. //depot/projects/smpng/sys/amd64/amd64/db_disasm.c#7 edit
.. //depot/projects/smpng/sys/modules/x86dis/Makefile#1 add
.. //depot/projects/smpng/sys/modules/x86dis/x86dis.c#1 add
Differences ...
==== //depot/projects/smpng/sys/amd64/amd64/db_disasm.c#7 (text+ko) ====
@@ -169,9 +169,9 @@
"fxrstor",
"ldmxcsr",
"stmxcsr",
- "",
- "",
- "",
+ "xsave",
+ "xrstor",
+ "xsaveopt",
"clflush"
};
@@ -1269,6 +1269,26 @@
/* Special cases that don't fit well in the tables. */
if (ip->i_extra == db_Grp7 && f_mod(rex, regmodrm) == 3) {
switch (regmodrm) {
+ case 0xc1:
+ i_name = "vmcall";
+ i_size = NONE;
+ i_mode = 0;
+ break;
+ case 0xc2:
+ i_name = "vmlaunch";
+ i_size = NONE;
+ i_mode = 0;
+ break;
+ case 0xc3:
+ i_name = "vmresume";
+ i_size = NONE;
+ i_mode = 0;
+ break;
+ case 0xc3:
+ i_name = "vmxoff";
+ i_size = NONE;
+ i_mode = 0;
+ break;
case 0xc8:
i_name = "monitor";
i_size = NONE;
@@ -1279,11 +1299,26 @@
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) {
More information about the p4-projects
mailing list