OSDN Git Service

target/ppc: Move single-step check to ppc_tr_tb_stop
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 17 May 2021 20:50:07 +0000 (17:50 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 19 May 2021 00:30:29 +0000 (10:30 +1000)
commit13b4557567ad3b92fba701cc7369030357c2bbc4
treec5bf3ed7e8f2ae8b6bd469b5ebf25a5a979ed75d
parent7a3fe174b12d0e9c4ccef2306eabf90be504b482
target/ppc: Move single-step check to ppc_tr_tb_stop

When single-stepping, force max_insns to 1 in init_disas
so that we exit the translation loop immediately.

Combine the single-step checks in tb_stop, and give the
gdb exception priority over the cpu exception, just as
we already do in gen_lookup_and_goto_ptr.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Message-Id: <20210517205025.3777947-6-matheus.ferst@eldorado.org.br>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/translate.c