Skip to content

Commit b6509e3

Browse files
committed
target/rx: Drop checks for singlestep_enabled
GDB single-stepping is now handled generically. Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Richard Henderson <[email protected]>
1 parent 273b68b commit b6509e3

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

target/rx/helper.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ DEF_HELPER_1(raise_illegal_instruction, noreturn, env)
22
DEF_HELPER_1(raise_access_fault, noreturn, env)
33
DEF_HELPER_1(raise_privilege_violation, noreturn, env)
44
DEF_HELPER_1(wait, noreturn, env)
5-
DEF_HELPER_1(debug, noreturn, env)
65
DEF_HELPER_2(rxint, noreturn, env, i32)
76
DEF_HELPER_1(rxbrk, noreturn, env)
87
DEF_HELPER_FLAGS_3(fadd, TCG_CALL_NO_WG, f32, env, f32, f32)

target/rx/op_helper.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -451,14 +451,6 @@ void QEMU_NORETURN helper_wait(CPURXState *env)
451451
raise_exception(env, EXCP_HLT, 0);
452452
}
453453

454-
void QEMU_NORETURN helper_debug(CPURXState *env)
455-
{
456-
CPUState *cs = env_cpu(env);
457-
458-
cs->exception_index = EXCP_DEBUG;
459-
cpu_loop_exit(cs);
460-
}
461-
462454
void QEMU_NORETURN helper_rxint(CPURXState *env, uint32_t vec)
463455
{
464456
raise_exception(env, 0x100 + vec, 0);

target/rx/translate.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,7 @@ static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest)
150150
tcg_gen_exit_tb(dc->base.tb, n);
151151
} else {
152152
tcg_gen_movi_i32(cpu_pc, dest);
153-
if (dc->base.singlestep_enabled) {
154-
gen_helper_debug(cpu_env);
155-
} else {
156-
tcg_gen_lookup_and_goto_ptr();
157-
}
153+
tcg_gen_lookup_and_goto_ptr();
158154
}
159155
dc->base.is_jmp = DISAS_NORETURN;
160156
}
@@ -2331,11 +2327,7 @@ static void rx_tr_tb_stop(DisasContextBase *dcbase, CPUState *cs)
23312327
gen_goto_tb(ctx, 0, dcbase->pc_next);
23322328
break;
23332329
case DISAS_JUMP:
2334-
if (ctx->base.singlestep_enabled) {
2335-
gen_helper_debug(cpu_env);
2336-
} else {
2337-
tcg_gen_lookup_and_goto_ptr();
2338-
}
2330+
tcg_gen_lookup_and_goto_ptr();
23392331
break;
23402332
case DISAS_UPDATE:
23412333
tcg_gen_movi_i32(cpu_pc, ctx->base.pc_next);

0 commit comments

Comments
 (0)