diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-11-03 00:03:47 -0400 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-12-15 10:35:26 +0000 |
commit | 485088f7425ec7f99d3f21cafb028aa92639618d (patch) | |
tree | 3a3bb036fe831919869b4553cae70fca875597c6 /target | |
parent | 258a00e5a4a59dd4b0360a0aa4b8263b44d55cd0 (diff) | |
download | qemu-485088f7425ec7f99d3f21cafb028aa92639618d.zip qemu-485088f7425ec7f99d3f21cafb028aa92639618d.tar.gz qemu-485088f7425ec7f99d3f21cafb028aa92639618d.tar.bz2 |
target/arm: Advance pc for arch single-step exception
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>
Diffstat (limited to 'target')
-rw-r--r-- | target/arm/translate-a64.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 9c4258c..2986fe1 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -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; } |