target/hexagon: Drop 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
e3774881b5
commit
db07bd026e
@ -69,11 +69,7 @@ static void gen_end_tb(DisasContext *ctx)
|
|||||||
{
|
{
|
||||||
gen_exec_counters(ctx);
|
gen_exec_counters(ctx);
|
||||||
tcg_gen_mov_tl(hex_gpr[HEX_REG_PC], hex_next_PC);
|
tcg_gen_mov_tl(hex_gpr[HEX_REG_PC], hex_next_PC);
|
||||||
if (ctx->base.singlestep_enabled) {
|
tcg_gen_exit_tb(NULL, 0);
|
||||||
gen_exception_raw(EXCP_DEBUG);
|
|
||||||
} else {
|
|
||||||
tcg_gen_exit_tb(NULL, 0);
|
|
||||||
}
|
|
||||||
ctx->base.is_jmp = DISAS_NORETURN;
|
ctx->base.is_jmp = DISAS_NORETURN;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -614,11 +610,7 @@ static void hexagon_tr_tb_stop(DisasContextBase *dcbase, CPUState *cpu)
|
|||||||
case DISAS_TOO_MANY:
|
case DISAS_TOO_MANY:
|
||||||
gen_exec_counters(ctx);
|
gen_exec_counters(ctx);
|
||||||
tcg_gen_movi_tl(hex_gpr[HEX_REG_PC], ctx->base.pc_next);
|
tcg_gen_movi_tl(hex_gpr[HEX_REG_PC], ctx->base.pc_next);
|
||||||
if (ctx->base.singlestep_enabled) {
|
tcg_gen_exit_tb(NULL, 0);
|
||||||
gen_exception_raw(EXCP_DEBUG);
|
|
||||||
} else {
|
|
||||||
tcg_gen_exit_tb(NULL, 0);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case DISAS_NORETURN:
|
case DISAS_NORETURN:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user