mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
tcg: Remove gen_intermediate_code_pc
It is no longer used, so tidy up everything reached by it. This includes the gen_opc_* arrays, the search_pc parameter and the inline gen_intermediate_code_internal functions. Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
fca8a500d5
commit
4e5e121515
22 changed files with 90 additions and 736 deletions
|
@ -8266,20 +8266,14 @@ static void decode_opc(CPUTriCoreState *env, DisasContext *ctx, int *is_branch)
|
|||
}
|
||||
}
|
||||
|
||||
static inline void
|
||||
gen_intermediate_code_internal(TriCoreCPU *cpu, struct TranslationBlock *tb,
|
||||
int search_pc)
|
||||
void gen_intermediate_code(CPUTriCoreState *env, struct TranslationBlock *tb)
|
||||
{
|
||||
TriCoreCPU *cpu = tricore_env_get_cpu(env);
|
||||
CPUState *cs = CPU(cpu);
|
||||
CPUTriCoreState *env = &cpu->env;
|
||||
DisasContext ctx;
|
||||
target_ulong pc_start;
|
||||
int num_insns, max_insns;
|
||||
|
||||
if (search_pc) {
|
||||
qemu_log("search pc %d\n", search_pc);
|
||||
}
|
||||
|
||||
num_insns = 0;
|
||||
max_insns = tb->cflags & CF_COUNT_MASK;
|
||||
if (max_insns == 0) {
|
||||
|
@ -8318,12 +8312,9 @@ gen_intermediate_code_internal(TriCoreCPU *cpu, struct TranslationBlock *tb,
|
|||
}
|
||||
|
||||
gen_tb_end(tb, num_insns);
|
||||
if (search_pc) {
|
||||
printf("done_generating search pc\n");
|
||||
} else {
|
||||
tb->size = ctx.pc - pc_start;
|
||||
tb->icount = num_insns;
|
||||
}
|
||||
tb->size = ctx.pc - pc_start;
|
||||
tb->icount = num_insns;
|
||||
|
||||
if (tcg_check_temp_count()) {
|
||||
printf("LEAK at %08x\n", env->PC);
|
||||
}
|
||||
|
@ -8337,18 +8328,6 @@ gen_intermediate_code_internal(TriCoreCPU *cpu, struct TranslationBlock *tb,
|
|||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
gen_intermediate_code(CPUTriCoreState *env, struct TranslationBlock *tb)
|
||||
{
|
||||
gen_intermediate_code_internal(tricore_env_get_cpu(env), tb, false);
|
||||
}
|
||||
|
||||
void
|
||||
gen_intermediate_code_pc(CPUTriCoreState *env, struct TranslationBlock *tb)
|
||||
{
|
||||
gen_intermediate_code_internal(tricore_env_get_cpu(env), tb, true);
|
||||
}
|
||||
|
||||
void
|
||||
restore_state_to_opc(CPUTriCoreState *env, TranslationBlock *tb,
|
||||
target_ulong *data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue