target/mips: optimize indirect branches

Backports commit e350d8ca3ac7e31c6af71a4ab74d2442dfefc697 from qemu
This commit is contained in:
Aurelien Jarno 2018-03-03 14:23:56 -05:00 committed by Lioncash
parent 8ce8d4fe20
commit 2c49a6b2f6
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -10810,7 +10810,7 @@ static void gen_branch(DisasContext *ctx, int insn_bytes)
save_cpu_state(ctx, 0);
gen_helper_raise_exception_debug(tcg_ctx, tcg_ctx->cpu_env);
}
tcg_gen_exit_tb(tcg_ctx, 0);
tcg_gen_lookup_and_goto_ptr(tcg_ctx, tcg_ctx->cpu_PC);
break;
default:
fprintf(stderr, "unknown branch 0x%x\n", proc_hflags);