diff options
Diffstat (limited to 'target-s390x')
-rw-r--r-- | target-s390x/translate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-s390x/translate.c b/target-s390x/translate.c index 05d51fe84a..c79a2cb57a 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -5360,6 +5360,11 @@ void gen_intermediate_code(CPUS390XState *env, struct TranslationBlock *tb) if (unlikely(cpu_breakpoint_test(cs, dc.pc, BP_ANY))) { status = EXIT_PC_STALE; do_debug = true; + /* 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. */ + dc.pc += 2; break; } |