mirror of https://github.com/xemu-project/xemu.git
accel/tcg: Migrate cpu->env_ptr to cpu_env
This commit is contained in:
parent
255d110496
commit
a19d9202e7
|
@ -217,7 +217,7 @@ void translator_loop(CPUState *cpu, TranslationBlock *tb, int *max_insns,
|
|||
/* May be used by disas_log or plugin callbacks. */
|
||||
tb->size = db->pc_next - db->pc_first;
|
||||
tb->icount = db->num_insns;
|
||||
tb->ihash = tb_code_hash_func(cpu->env_ptr, db->pc_first, tb->size);
|
||||
tb->ihash = tb_code_hash_func(cpu_env(cpu), db->pc_first, tb->size);
|
||||
|
||||
if (plugin_enabled) {
|
||||
plugin_gen_tb_end(cpu, db->num_insns);
|
||||
|
|
Loading…
Reference in New Issue