diff options
author | Richard Henderson | 2015-10-14 00:07:49 +0200 |
---|---|---|
committer | Richard Henderson | 2015-10-28 18:57:16 +0100 |
commit | 522a0d4e3c0d397ffb45ec400d8cbd426dad9d17 (patch) | |
tree | 47bf23d369e201fe8e982097a5fdd5437f88bdfa /target-sparc | |
parent | Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into st... (diff) | |
download | qemu-522a0d4e3c0d397ffb45ec400d8cbd426dad9d17.tar.gz qemu-522a0d4e3c0d397ffb45ec400d8cbd426dad9d17.tar.xz qemu-522a0d4e3c0d397ffb45ec400d8cbd426dad9d17.zip |
target-*: Advance pc after recognizing a breakpoint
Some targets already had this within their logic, but make sure
it's present for all targets.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-sparc')
-rw-r--r-- | target-sparc/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c index b59742ad2e..41a33193d8 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -5247,6 +5247,7 @@ void gen_intermediate_code(CPUSPARCState * env, TranslationBlock * tb) tcg_gen_insn_start(dc->pc, dc->npc); } num_insns++; + last_pc = dc->pc; if (unlikely(cpu_breakpoint_test(cs, dc->pc, BP_ANY))) { if (dc->pc != pc_start) { @@ -5262,7 +5263,6 @@ void gen_intermediate_code(CPUSPARCState * env, TranslationBlock * tb) gen_io_start(); } - last_pc = dc->pc; insn = cpu_ldl_code(env, dc->pc); disas_sparc_insn(dc, insn); |