qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-arm: Implement AArch64 OSLSR_EL1 sysreg dummy
@ 2015-09-22 18:35 Davorin Mista
  2015-09-22 21:16 ` Alistair Francis
  2015-09-23 16:07 ` Peter Maydell
  0 siblings, 2 replies; 4+ messages in thread
From: Davorin Mista @ 2015-09-22 18:35 UTC (permalink / raw)
  To: qemu-devel; +Cc: Davorin Mista, peter.maydell, alistai, sorenb

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 <davorin.mista@aggios.com>

---
 target-arm/helper.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/target-arm/helper.c b/target-arm/helper.c
index 454d666..8431181 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -3085,6 +3085,10 @@ static const ARMCPRegInfo debug_cp_reginfo[] = {
     { .name = "OSLAR_EL1", .state = ARM_CP_STATE_BOTH,
       .cp = 14, .opc0 = 2, .opc1 = 0, .crn = 1, .crm = 0, .opc2 = 4,
       .access = PL1_W, .type = ARM_CP_NOP },
+    /* We define a dummy OSLSR_EL1, because Linux reads from it. */
+    { .name = "OSLSR_EL1", .state = ARM_CP_STATE_BOTH,
+      .cp = 14, .opc0 = 2, .opc1 = 0, .crn = 1, .crm = 1, .opc2 = 4 ,
+      .access = PL1_R, .type = ARM_CP_NOP },
     /* Dummy OSDLR_EL1: 32-bit Linux will read this */
     { .name = "OSDLR_EL1", .state = ARM_CP_STATE_BOTH,
       .cp = 14, .opc0 = 2, .opc1 = 0, .crn = 1, .crm = 3, .opc2 = 4,
-- 
2.5.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-23 19:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-22 18:35 [Qemu-devel] [PATCH] target-arm: Implement AArch64 OSLSR_EL1 sysreg dummy Davorin Mista
2015-09-22 21:16 ` Alistair Francis
2015-09-23 16:07 ` Peter Maydell
2015-09-23 19:12   ` Davorin Mista

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).