mirror of https://github.com/xemu-project/xemu.git
target/mips: Drop exit checks for singlestep_enabled
GDB single-stepping is now handled generically. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
ef00cd4a22
commit
1a79c41399
|
@ -4823,14 +4823,9 @@ static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest)
|
|||
tcg_gen_exit_tb(ctx->base.tb, n);
|
||||
} else {
|
||||
gen_save_pc(dest);
|
||||
if (ctx->base.singlestep_enabled) {
|
||||
save_cpu_state(ctx, 0);
|
||||
gen_helper_raise_exception_debug(cpu_env);
|
||||
} else {
|
||||
tcg_gen_lookup_and_goto_ptr();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Branches (before delay slot) */
|
||||
static void gen_compute_branch(DisasContext *ctx, uint32_t opc,
|
||||
|
@ -11788,10 +11783,6 @@ static void gen_branch(DisasContext *ctx, int insn_bytes)
|
|||
} else {
|
||||
tcg_gen_mov_tl(cpu_PC, btarget);
|
||||
}
|
||||
if (ctx->base.singlestep_enabled) {
|
||||
save_cpu_state(ctx, 0);
|
||||
gen_helper_raise_exception_debug(cpu_env);
|
||||
}
|
||||
tcg_gen_lookup_and_goto_ptr();
|
||||
break;
|
||||
default:
|
||||
|
@ -16111,10 +16102,6 @@ static void mips_tr_tb_stop(DisasContextBase *dcbase, CPUState *cs)
|
|||
{
|
||||
DisasContext *ctx = container_of(dcbase, DisasContext, base);
|
||||
|
||||
if (ctx->base.singlestep_enabled && ctx->base.is_jmp != DISAS_NORETURN) {
|
||||
save_cpu_state(ctx, ctx->base.is_jmp != DISAS_EXIT);
|
||||
gen_helper_raise_exception_debug(cpu_env);
|
||||
} else {
|
||||
switch (ctx->base.is_jmp) {
|
||||
case DISAS_STOP:
|
||||
gen_save_pc(ctx->base.pc_next);
|
||||
|
@ -16134,7 +16121,6 @@ static void mips_tr_tb_stop(DisasContextBase *dcbase, CPUState *cs)
|
|||
g_assert_not_reached();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void mips_tr_disas_log(const DisasContextBase *dcbase, CPUState *cs)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue