target-arm: Move get/set_r13_banked() to op_helper.c
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)
commit72309cee482868d6c4711931c3f7e02ab9dec229
tree84afef0e06eac0e9aa3d72e28fa90ea261e3d815
parentcbc0326b6fb905f80b7cef85b24571f7ebb62077
target-arm: Move get/set_r13_banked() to op_helper.c

Move get/set_r13_banked() from helper.c to op_helper.c. This will
let us add exception-raising code to them, and also puts them
in the same file as get/set_user_reg(), which makes some conceptual
sense.

(The original reason for the helper.c/op_helper.c split was that
only op_helper.c had access to the CPU env pointer; this distinction
has not been true for a long time, though, and so the split is
now rather arbitrary.)

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