target-arm: Implement AArch64 OSLAR/OSLSR_EL1 sysregs
commit1424ca8d4320427c3e93722b65e19077969808a2
authorDavorin Mista <davorin.mista@aggios.com>
Fri, 16 Oct 2015 10:14:53 +0000 (16 11:14 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 16 Oct 2015 10:14:53 +0000 (16 11:14 +0100)
treeb91a21fdec9893333f64574a9b134d5dba22e5ff
parentbab27ea2e3855b6495a743f19b9d28cb013443ea
target-arm: Implement AArch64 OSLAR/OSLSR_EL1 sysregs

Added oslar_write function to OSLAR_EL1 sysreg, using a status variable
in ARMCPUState.cp15 struct (oslsr_el1). This variable is also linked
to the newly added read-only OSLSR_EL1 register.

Linux reads from this register during its suspend/resume procedure.

Signed-off-by: Davorin Mista <davorin.mista@aggios.com>
[PMM: folded a long line and tweaked a comment]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/cpu.h
target-arm/helper.c