Commit 6c5f738d authored by Edgar E. Iglesias's avatar Edgar E. Iglesias
Browse files

microblaze: Handle singlestepping over direct jmps


Signed-off-by: default avatarEdgar E. Iglesias <edgar.iglesias@petalogix.com>
parent 1c0de9fa
......@@ -1715,9 +1715,13 @@ gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb,
t_sync_flags(dc);
if (unlikely(env->singlestep_enabled)) {
t_gen_raise_exception(dc, EXCP_DEBUG);
if (dc->is_jmp == DISAS_NEXT)
TCGv_i32 tmp = tcg_const_i32(EXCP_DEBUG);
if (dc->is_jmp != DISAS_JUMP) {
tcg_gen_movi_tl(cpu_SR[SR_PC], npc);
}
gen_helper_raise_exception(tmp);
tcg_temp_free_i32(tmp);
} else {
switch(dc->is_jmp) {
case DISAS_NEXT:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment