diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2015-10-28 20:10:22 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2015-10-28 20:10:22 +0000 |
commit | 331c5e2091009f170554fed4ef884aeea871e4bb (patch) | |
tree | 47bf23d369e201fe8e982097a5fdd5437f88bdfa /target-sh4/translate.c | |
parent | 496fedddce9a575111df4f912fb9e361037531ed (diff) | |
parent | 522a0d4e3c0d397ffb45ec400d8cbd426dad9d17 (diff) |
Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20151028' into staging
Breakpoint fixes
# gpg: Signature made Wed 28 Oct 2015 17:58:52 GMT using RSA key ID 4DD0279B
# gpg: Good signature from "Richard Henderson <rth7680@gmail.com>"
# gpg: aka "Richard Henderson <rth@redhat.com>"
# gpg: aka "Richard Henderson <rth@twiddle.net>"
* remotes/rth/tags/pull-tcg-20151028:
target-*: Advance pc after recognizing a breakpoint
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-sh4/translate.c')
-rw-r--r-- | target-sh4/translate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c index f764bc2539..7bc621649a 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -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; } |