mirror of https://github.com/xemu-project/xemu.git
accel/tcg: Use new PCREL cflag in call to tb_hash_func
This commit is contained in:
parent
8d84f63430
commit
9affae9f4c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue