Skip to content

Commit 12025d5

Browse files
authored
fix missing LibAFL markers (#54)
1 parent 131dca3 commit 12025d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

accel/tcg/translate-all.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,13 +649,15 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
649649
}
650650
tb->tc.size = gen_code_size;
651651

652+
//// --- Begin LibAFL code ---
652653
struct libafl_block_hook *hook = libafl_block_hooks;
653654
while (hook)
654655
{
655656
if (hook->post_gen)
656657
hook->post_gen(hook->data, pc, tb->size);
657658
hook = hook->next;
658659
}
660+
//// --- End LibAFL code ---
659661

660662
/*
661663
* For CF_PCREL, attribute all executions of the generated code

0 commit comments

Comments
 (0)