X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=translate-all.c;h=f22e3eedd2c7362f3006bd191b64a9c203080df7;hb=16ef55ca85ac8c8fcac46547108bd1c8b44943a2;hp=d9c2e57861d877694ef9a191a8db2f4d6df6972e;hpb=5cc82c2d20bdf762519822d3eade5dec4846cee8;p=mirror_qemu.git diff --git a/translate-all.c b/translate-all.c index d9c2e57861..f22e3eedd2 100644 --- a/translate-all.c +++ b/translate-all.c @@ -33,10 +33,6 @@ /* code generation context */ TCGContext tcg_ctx; -target_ulong gen_opc_pc[OPC_BUF_SIZE]; -uint16_t gen_opc_icount[OPC_BUF_SIZE]; -uint8_t gen_opc_instr_start[OPC_BUF_SIZE]; - void cpu_gen_init(void) { tcg_context_init(&tcg_ctx); @@ -146,9 +142,10 @@ int cpu_restore_state(TranslationBlock *tb, if (j < 0) return -1; /* now find start of instruction before */ - while (gen_opc_instr_start[j] == 0) + while (s->gen_opc_instr_start[j] == 0) { j--; - env->icount_decr.u16.low -= gen_opc_icount[j]; + } + env->icount_decr.u16.low -= s->gen_opc_icount[j]; restore_state_to_opc(env, tb, j);