The Arm ARM says that a successful read of RNDR(RS) should return with
PSTATE.NZCV == 0 and a failed one should read 0 and PSTATE.NZCV ==
0b0100. No platform hooks emulate this PSTATE behaviours and neither
does generic code.
This patch adds the emulation in generic code so that platform hooks
don't have to. To do this, simplify the platform hook even further - it
now has one job: to return the value and if it was successful. All the
architectural parsing is now fully generic.
Change-Id: Ica35aa6f10cc3dd6fa6ba91e6de1bec68260953d
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>