mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
496fedddce
commit
522a0d4e3c
17 changed files with 80 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue