Skip to content

Commit 17f04fc

Browse files
committed
fix(x86): split decode/emulate interrupt hooks
1 parent 42d5a55 commit 17f04fc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

x86/plugin.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static void x86_decode(RDContext* ctx, RDInstruction* instr,
275275

276276
case ZYDIS_MNEMONIC_INT:
277277
case ZYDIS_MNEMONIC_INTO:
278-
rd_fire_instruction_hook(ctx, "x86.int", instr);
278+
rd_fire_decode_hook(ctx, "x86.int", instr);
279279
break;
280280

281281
default: break;
@@ -337,6 +337,11 @@ static void x86_emulate(RDContext* ctx, const RDInstruction* instr,
337337
case ZYDIS_MNEMONIC_NEG:
338338
case ZYDIS_MNEMONIC_NOT: x86_track_math(ctx, instr); break;
339339

340+
case ZYDIS_MNEMONIC_INT:
341+
case ZYDIS_MNEMONIC_INTO:
342+
rd_fire_emulate_hook(ctx, "x86.int", instr);
343+
break;
344+
340345
default: break;
341346
}
342347

0 commit comments

Comments
 (0)