Makes SYSENTER hookable again on x86 (#996)
Adds SYSENTER to the whitelist of supported hookable instructions in unicorn as well as fixes up the existing sysenter_hook_x86 regression test which was previously failing Fixes unicorn-engine/unicorn#995
This commit is contained in:

committed by
Nguyen Anh Quynh

parent
84220d8360
commit
0f14c47344
@ -1341,7 +1341,8 @@ static bool x86_insn_hook_validate(uint32_t insn_enum)
|
||||
//for x86 we can only hook IN, OUT, and SYSCALL
|
||||
if (insn_enum != UC_X86_INS_IN
|
||||
&& insn_enum != UC_X86_INS_OUT
|
||||
&& insn_enum != UC_X86_INS_SYSCALL) {
|
||||
&& insn_enum != UC_X86_INS_SYSCALL
|
||||
&& insn_enum != UC_X86_INS_SYSENTER) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user