accel/tcg: Use new PCREL cflag in call to tb_hash_func

This commit is contained in:
Matt Borgerson 2025-01-06 04:08:41 -07:00
parent 8d84f63430
commit 9affae9f4c
1 changed files with 2 additions and 3 deletions

View File

@ -322,9 +322,8 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
qemu_spin_lock(&tb->jmp_lock); qemu_spin_lock(&tb->jmp_lock);
qatomic_set(&tb->cflags, tb->cflags & ~CF_INVALID); qatomic_set(&tb->cflags, tb->cflags & ~CF_INVALID);
qemu_spin_unlock(&tb->jmp_lock); qemu_spin_unlock(&tb->jmp_lock);
uint32_t h = tb_hash_func(phys_pc, (TARGET_TB_PCREL ? 0 : tb_pc(tb)), uint32_t h = tb_hash_func(phys_pc, (tb->cflags & CF_PCREL ? 0 : tb->pc),
tb->flags, tb_cflags(tb), tb->flags, tb->cs_base, tb->cflags);
tb->trace_vcpu_dstate);
bool removed = qht_remove(&tb_ctx.inv_htable, tb, h); bool removed = qht_remove(&tb_ctx.inv_htable, tb, h);
g_assert(removed); g_assert(removed);
recycled = true; recycled = true;