target-arm: Remove ARMCPU/CPUARMState from cpregs APIs used by decoder
commit60322b399dc62da7cc1ccd42fbd19b017f8a5e38
authorPeter Maydell <peter.maydell@linaro.org>
Sat, 4 Jan 2014 22:15:44 +0000 (4 22:15 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 7 Jan 2014 19:17:58 +0000 (7 19:17 +0000)
tree5f18c7d66fc97dbb4a7c74b2a3b8a0ec2dfb8f83
parentf5a0a5a5abe7b72ad14b8884681a25fcf3e91c16
target-arm: Remove ARMCPU/CPUARMState from cpregs APIs used by decoder

The cpregs APIs used by the decoder (get_arm_cp_reginfo() and
cp_access_ok()) currently take either a CPUARMState* or an ARMCPU*.
This is problematic for the A64 decoder, which doesn't pass the
environment pointer around everywhere the way the 32 bit decoder
does. Adjust the parameters these functions take so that we can
copy only the relevant info from the CPUARMState into the
DisasContext and then use that.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
target-arm/cpu.h
target-arm/helper.c
target-arm/translate-a64.c
target-arm/translate.c
target-arm/translate.h