target-arm: Combine user-only and softmmu get/set_r13_banked()
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 18 Feb 2016 14:16:16 +0000 (14:16 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 18 Feb 2016 14:16:16 +0000 (14:16 +0000)
commitd86d57d4fe683c99823f625f941eff26c07c72c3
tree9e1507697658d53a5f917450bae4d0d7afd73b39
parentc766568d3604082c6fd45cbabe42c48e4861a13f
target-arm: Combine user-only and softmmu get/set_r13_banked()

The user-mode versions of get/set_r13_banked() exist just to assert
if they're ever called -- the translate time code should never
emit calls to them because SRS from user mode always UNDEF.
There's no code in the softmmu versions that can't compile in
CONFIG_USER_ONLY, and the assertion is not particularly useful,
so combine the two functions rather than having completely split
versions under ifdefs.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Sergey Fedorov <serge.fdrv@gmail.com>
target-arm/op_helper.c