Skip to content

Commit

Permalink
fix hook support for Jackalope
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonfranke committed Dec 21, 2024
1 parent c0aeb2b commit 6b7383c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm64/arm64_litecov.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ InstructionResult LiteCov::InstrumentInstruction(ModuleInfo *module,
Instruction &inst,
size_t bb_address,
size_t instruction_address) {

InstructionResult tinyinst_ret = TinyInst::InstrumentInstruction(module, inst, bb_address, instruction_address);
if(tinyinst_ret != INST_NOTHANDLED) return tinyinst_ret;

if (!compare_coverage) {
return INST_NOTHANDLED;
}
Expand Down
4 changes: 4 additions & 0 deletions arch/x86/x86_litecov.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ InstructionResult LiteCov::InstrumentInstruction(ModuleInfo *module,
Instruction &inst,
size_t bb_address,
size_t instruction_address) {

InstructionResult tinyinst_ret = TinyInst::InstrumentInstruction(module, inst, bb_address, instruction_address);
if(tinyinst_ret != INST_NOTHANDLED) return tinyinst_ret;

if (!compare_coverage) {
return INST_NOTHANDLED;
}
Expand Down

0 comments on commit 6b7383c

Please sign in to comment.