]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/arm: Advance pc for arch single-step exception
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 3 Nov 2021 04:03:47 +0000 (00:03 -0400)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 15 Dec 2021 10:35:26 +0000 (10:35 +0000)
The size of the code covered by a TranslationBlock cannot be 0;
this is checked via assert in tb_gen_code.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/translate-a64.c

index 9c4258ccac2845c5217da067a581fa93f99ac6f1..2986fe13935f60635c079723e0f5b49030403f6c 100644 (file)
@@ -14767,6 +14767,7 @@ static void aarch64_tr_translate_insn(DisasContextBase *dcbase, CPUState *cpu)
         assert(s->base.num_insns == 1);
         gen_swstep_exception(s, 0, 0);
         s->base.is_jmp = DISAS_NORETURN;
+        s->base.pc_next = pc + 4;
         return;
     }