From 12025d58fea053133a43772ba0043239eb36fd34 Mon Sep 17 00:00:00 2001 From: Romain Malmain Date: Thu, 14 Mar 2024 18:19:47 +0100 Subject: [PATCH] fix missing LibAFL markers (#54) --- accel/tcg/translate-all.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index a4d85fa612..c5e10a2ff8 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -649,6 +649,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu, } tb->tc.size = gen_code_size; +//// --- Begin LibAFL code --- struct libafl_block_hook *hook = libafl_block_hooks; while (hook) { @@ -656,6 +657,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu, hook->post_gen(hook->data, pc, tb->size); hook = hook->next; } +//// --- End LibAFL code --- /* * For CF_PCREL, attribute all executions of the generated code