Commit bdbf22e6b712adb6171a129efce67feece3a5b56
1 parent
c69e3264
SH4: fix single-stepping
* target-sh/translate.c (gen_intermediate_code_internal): If singlestep is enabled, update PC before stopping. (Vladimir Prus) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5472 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
0 deletions
target-sh4/translate.c
... | ... | @@ -1867,6 +1867,7 @@ gen_intermediate_code_internal(CPUState * env, TranslationBlock * tb, |
1867 | 1867 | if (tb->cflags & CF_LAST_IO) |
1868 | 1868 | gen_io_end(); |
1869 | 1869 | if (env->singlestep_enabled) { |
1870 | + tcg_gen_movi_i32(cpu_pc, ctx.pc); | |
1870 | 1871 | tcg_gen_helper_0_0(helper_debug); |
1871 | 1872 | } else { |
1872 | 1873 | switch (ctx.bstate) { | ... | ... |