[Qemu-devel] [PATCHv4] target-arm: Implement AArch64 OSLAR/OSLSR_EL1 sysregs

2015-10-06 Thread Davorin Mista
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

[Qemu-devel] [PATCHv3] target-arm: Implement AArch64 OSLAR/OSLSR_EL1 sysregs

2015-10-05 Thread Davorin Mista
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

Re: [Qemu-devel] [PATCHv2] target-arm: Implement AArch64 OSLSR_EL1 sysreg

2015-10-05 Thread Davorin Mista
SUPPRESS_TB_END 8 #define ARM_CP_OVERRIDE 16 #define ARM_CP_NO_MIGRATE 32 #define ARM_CP_IO 64 Cheers, Davorin On 10/05/2015 01:27 PM, Peter Maydell wrote: On 5 October 2015 at 20:56, Davorin Mista wrote: Added oslsr_write function to OSLAR_EL1 sysreg, using a status variable in ARMCPUState struct (os_l

[Qemu-devel] [PATCHv2] target-arm: Implement AArch64 OSLSR_EL1 sysreg

2015-10-05 Thread Davorin Mista
Added oslsr_write function to OSLAR_EL1 sysreg, using a status variable in ARMCPUState struct (os_lock_status). Linux reads from this register during its suspend/resume procedure. Signed-off-by: Davorin Mista --- Changed in v2: -switched from using dummy registers to an actual register

Re: [Qemu-devel] [PATCH] target-arm: Implement AArch64 OSLSR_EL1 sysreg dummy

2015-09-23 Thread Davorin Mista
On 09/23/2015 09:07 AM, Peter Maydell wrote: On 22 September 2015 at 11:35, Davorin Mista wrote: Define a dummy version of the AArch64 OSLAR_EL1 system register Should read "OSLSR_EL1" :-) Yes, sorry about that :) which just ignores reads. Linux reads from this register

[Qemu-devel] [PATCH] target-arm: Implement AArch64 OSLSR_EL1 sysreg dummy

2015-09-22 Thread Davorin Mista
Define a dummy version of the AArch64 OSLAR_EL1 system register which just ignores reads. Linux reads from this register during its suspend/resume procedure. Signed-off-by: Davorin Mista --- target-arm/helper.c | 4 1 file changed, 4 insertions(+) diff --git a/target-arm/helper.c b