Skip to content

Commit

Permalink
Fix bug that CF_NOCACHE TB excuted without regeneration.
Browse files Browse the repository at this point in the history
  • Loading branch information
saicao committed Nov 16, 2024
1 parent 1d3bfc4 commit 2d87f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qemu/accel/tcg/cpu-exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ static inline TranslationBlock *tb_find(CPUState *cpu,
struct hook *hook;

tb = tb_lookup__cpu_state(cpu, &pc, &cs_base, &flags, cf_mask);
if (tb == NULL) {
if (tb == NULL||tb->cflags&CF_NOCACHE) {
mmap_lock();
tb = tb_gen_code(cpu, pc, cs_base, flags, cf_mask);
mmap_unlock();
Expand Down

0 comments on commit 2d87f9c

Please sign in to comment.