arm: Move condition-failed codepath generation out of if()
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Apr 2017 16:32:30 +0000 (17:32 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Apr 2017 16:39:17 +0000 (17:39 +0100)
commitf021b2c4627890d82fbcc300db3bd782b37b7f8a
treea03ead5e859dc63a97a808dd13270a805863a9de
parent4d5e8c969a74c86124fc2284ea603cc6dd3c5dfa
arm: Move condition-failed codepath generation out of if()

Move the code to generate the "condition failed" instruction
codepath out of the if (singlestepping) {} else {}. This
will allow adding support for handling a new is_jmp type
which can't be neatly split into "singlestepping case"
versus "not singlestepping case".

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-id: 1491844419-12485-6-git-send-email-peter.maydell@linaro.org
target/arm/translate.c