OSDN Git Service

target/arm: Inline gen_bx_im into callers
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 4 Sep 2019 19:30:59 +0000 (12:30 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Sep 2019 12:23:04 +0000 (13:23 +0100)
commiteac2f39602e0423adf56be410c9a22c31fec9a81
treea1a696ead68f3386d7cc1b083a551a6348d6b1ab
parent0831403b08122b5bf801b0e3469cc63f019f60f0
target/arm: Inline gen_bx_im into callers

There are only two remaining uses of gen_bx_im.  In each case, we
know the destination mode -- not changing in the case of gen_jmp
or changing in the case of trans_BLX_i.  Use this to simplify the
surrounding code.

For trans_BLX_i, use gen_jmp for the actual branch.  For gen_jmp,
use gen_set_pc_im to set up the single-step.

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