]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc: fix single-step exception regression
authorLuis Pires <luis.pires@eldorado.org.br>
Wed, 2 Jun 2021 12:51:03 +0000 (09:51 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 3 Jun 2021 08:10:31 +0000 (18:10 +1000)
commiteba3c766fe355a4e593c1ee6944770f80b68acad
tree4e2dda7fdefdf9f7fd00af27e820a1f2cb7b79c8
parent8f0a4b6a9b40e18116a2bb6bbcc00feb8119c792
target/ppc: fix single-step exception regression

Commit 6086c75 (target/ppc: Replace POWERPC_EXCP_BRANCH with
DISAS_NORETURN) broke the generation of exceptions when
CPU_SINGLE_STEP or CPU_BRANCH_STEP were set, due to nip always being
reset to the address of the current instruction.
This fix leaves nip untouched when generating the exception.

Signed-off-by: Luis Pires <luis.pires@eldorado.org.br>
Reported-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Message-Id: <20210602125103.332793-1-luis.pires@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/translate.c