arm: Refactor get_phys_addr FSR return mechanism
commitb7cc4e82f04a1c5b218a657f677a2fdd1e1c2889
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Mon, 15 Jun 2015 17:06:10 +0000 (15 18:06 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 15 Jun 2015 17:06:10 +0000 (15 18:06 +0100)
tree32135d89733f819b41c10b6f007afd98fd05e295
parent8e5d75c950a1241f6e1243c37f28cd58f68fedc9
arm: Refactor get_phys_addr FSR return mechanism

Currently, the return code for get_phys_addr is overloaded for both
success/fail and FSR value return. This doesn't handle the case where
there is an error with a 0 FSR. This case exists in PMSAv7.

So rework get_phys_addr and friends to return a success/failure boolean
return code and populate the FSR via a caller provided uint32_t
pointer.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: a209e3d8ae00cda55260c970891f520210e26bad.1434066412.git.peter.crosthwaite@xilinx.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/helper.c
target-arm/internals.h
target-arm/op_helper.c