]> Git Repo - qemu.git/commitdiff
target/tricore: Don't save pc in generate_qemu_excp
authorBastian Koppelmann <[email protected]>
Fri, 29 May 2020 07:21:44 +0000 (09:21 +0200)
committerBastian Koppelmann <[email protected]>
Mon, 1 Jun 2020 14:55:12 +0000 (16:55 +0200)
EXCP_DEBUG is the only user. If we encounter a jump in tricore-gdb it's
target was overwritten by generate_qemu_excp() and we would never leave.

Signed-off-by: Bastian Koppelmann <[email protected]>
Message-Id: <20200529072148[email protected]>

target/tricore/translate.c

index 609d75ae8a6b91e7dbd479af05f8fc92eac99c01..65a33e5ad8116af10234f29a1b8b6c7b994ba9ef 100644 (file)
@@ -3264,7 +3264,6 @@ static void generate_trap(DisasContext *ctx, int class, int tin)
 static void generate_qemu_excp(DisasContext *ctx, int excp)
 {
     TCGv_i32 tmp = tcg_const_i32(excp);
-    gen_save_pc(ctx->base.pc_next);
     gen_helper_qemu_excp(cpu_env, tmp);
     ctx->base.is_jmp = DISAS_NORETURN;
     tcg_temp_free(tmp);
This page took 0.037504 seconds and 4 git commands to generate.