]> Git Repo - qemu.git/blobdiff - target-sh4/translate.c
linux-user/syscall.c: malloc()/calloc() to g_malloc()/g_try_malloc()/g_new0()
[qemu.git] / target-sh4 / translate.c
index f764bc2539331a1a61a9a4f9ccc88ce65b78bca3..7bc621649a56d3392199e65fcb86ab516e345961 100644 (file)
@@ -1855,6 +1855,11 @@ void gen_intermediate_code(CPUSH4State * env, struct TranslationBlock *tb)
             tcg_gen_movi_i32(cpu_pc, ctx.pc);
             gen_helper_debug(cpu_env);
             ctx.bstate = BS_BRANCH;
+            /* The address covered by the breakpoint must be included in
+               [tb->pc, tb->pc + tb->size) in order to for it to be
+               properly cleared -- thus we increment the PC here so that
+               the logic setting tb->size below does the right thing.  */
+            ctx.pc += 2;
             break;
         }
 
This page took 0.02451 seconds and 4 git commands to generate.