target-arm: Remove failure status return from read/write_raw_cp_reg
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Feb 2014 10:35:54 +0000 (10:35 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Feb 2014 10:35:54 +0000 (10:35 +0000)
commit59a1c327d72683e80fa1b886d42a3a5c17729484
tree060f9d25b5798f86eed44ff34d5f06010014ac3b
parentea4571eb8768c39bf6cacd64fdcb6ef405b18b18
target-arm: Remove failure status return from read/write_raw_cp_reg

The read_raw_cp_reg and write_raw_cp_reg functions can now never
fail (in fact they should never have failed previously unless
there was a bug in a reginfo that meant no raw accessor was
provided for a might-trap register). This allows us to clean up
their prototypes so the write function returns void and the
read function returns the value read, which in turn lets us
simplify the callers.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
target-arm/helper.c