Date: Tue, 3 Jul 2012 14:41:57 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 213849 for review Message-ID: <201207031441.q63Efvcm039033@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@213849?ac=10 Change 213849 by jhb@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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207031441.q63Efvcm039033>