From 081ad6a816f6f81c4c976172aed74a233a12f34c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Can=20B=C3=B6l=C3=BCk?= Date: Thu, 2 Dec 2021 19:08:49 +0300 Subject: [PATCH] Implemented __invpcid, __invlpga. --- plugin.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin.cpp b/plugin.cpp index 505f129..0d42547 100644 --- a/plugin.cpp +++ b/plugin.cpp @@ -393,7 +393,9 @@ constexpr std::pair simple_instruction_list[] = { NN_vmptrst, "__vmptrst" }, { NN_vmwrite, "__vmwrite" }, { NN_vmxoff, "__vmxoff" }, - { NN_vmxon, "__vmxon" } + { NN_vmxon, "__vmxon" }, + { NN_invpcid, "_invpcid" }, + { NN_invlpga, "_invlpga" } // TODO: vmfunc. }; hex::microcode_filter simple_instruction_lifter = [ ] ( codegen_t& cg ) @@ -422,8 +424,7 @@ hex::microcode_filter simple_instruction_lifter = [ ] ( codegen_t& cg ) case dt_byte: t = tinfo_t{ BT_INT8 }; break; case dt_word: t = tinfo_t{ BT_INT16 }; break; case dt_dword: t = tinfo_t{ BT_INT32 }; break; - case dt_qword: t = tinfo_t{ BT_INT64 }; break; - default: return false; + default: t = tinfo_t{ BT_INT64 }; break; } if ( ops.type == o_imm )