Skip to content

Commit 1b55c52

Browse files
committed
target/tricore: Drop check 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 52df5ad commit 1b55c52

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

target/tricore/helper.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,3 @@ DEF_HELPER_2(psw_write, void, env, i32)
153153
DEF_HELPER_1(psw_read, i32, env)
154154
/* Exceptions */
155155
DEF_HELPER_3(raise_exception_sync, noreturn, env, i32, i32)
156-
DEF_HELPER_2(qemu_excp, noreturn, env, i32)

target/tricore/op_helper.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,6 @@ static void raise_exception_sync_helper(CPUTriCoreState *env, uint32_t class,
107107
raise_exception_sync_internal(env, class, tin, pc, 0);
108108
}
109109

110-
void helper_qemu_excp(CPUTriCoreState *env, uint32_t excp)
111-
{
112-
CPUState *cs = env_cpu(env);
113-
cs->exception_index = excp;
114-
cpu_loop_exit(cs);
115-
}
116-
117110
/* Addressing mode helper */
118111

119112
static uint16_t reverse16(uint16_t val)

target/tricore/translate.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3225,14 +3225,6 @@ static inline void gen_save_pc(target_ulong pc)
32253225
tcg_gen_movi_tl(cpu_PC, pc);
32263226
}
32273227

3228-
static void generate_qemu_excp(DisasContext *ctx, int excp)
3229-
{
3230-
TCGv_i32 tmp = tcg_const_i32(excp);
3231-
gen_helper_qemu_excp(cpu_env, tmp);
3232-
ctx->base.is_jmp = DISAS_NORETURN;
3233-
tcg_temp_free(tmp);
3234-
}
3235-
32363228
static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest)
32373229
{
32383230
if (translator_use_goto_tb(&ctx->base, dest)) {
@@ -3241,11 +3233,7 @@ static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest)
32413233
tcg_gen_exit_tb(ctx->base.tb, n);
32423234
} else {
32433235
gen_save_pc(dest);
3244-
if (ctx->base.singlestep_enabled) {
3245-
generate_qemu_excp(ctx, EXCP_DEBUG);
3246-
} else {
3247-
tcg_gen_lookup_and_goto_ptr();
3248-
}
3236+
tcg_gen_lookup_and_goto_ptr();
32493237
}
32503238
}
32513239

0 commit comments

Comments
 (0)