OSDN Git Service

target/arm: Separate decode from handling of coproc insns
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 3 Aug 2020 11:18:44 +0000 (12:18 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 24 Aug 2020 09:02:06 +0000 (10:02 +0100)
commit19c23a9baafc91dd3881a7a4e9bf454e42d24e4e
treec33b5675478a1e6d6dea1484117c1e93df4a3328
parent7b4f933db865391a90a3b4518bb2050a83f2a873
target/arm: Separate decode from handling of coproc insns

As a prelude to making coproc insns use decodetree, split out the
part of disas_coproc_insn() which does instruction decoding from the
part which does the actual work, and make do_coproc_insn() handle the
UNDEF-on-bad-permissions and similar cases itself rather than
returning 1 to eventually percolate up to a callsite that calls
unallocated_encoding() for it.

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