qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] arm/zynq: Add software reset
@ 2013-05-08 12:55 Sebastian Huber
  2013-05-13 23:49 ` Peter Crosthwaite
  0 siblings, 1 reply; 6+ messages in thread
From: Sebastian Huber @ 2013-05-08 12:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: Sebastian Huber, git

---
 hw/misc/zynq_slcr.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/hw/misc/zynq_slcr.c b/hw/misc/zynq_slcr.c
index 8418327..e88702e 100644
--- a/hw/misc/zynq_slcr.c
+++ b/hw/misc/zynq_slcr.c
@@ -396,6 +396,9 @@ static void zynq_slcr_write(void *opaque, hwaddr offset,
                 goto bad_reg;
             }
             s->reset[(offset - 0x200) / 4] = val;
+            if (offset == 0x200 && val == 0x1) {
+                qemu_system_reset_request();
+            }
             break;
         case 0x300:
             s->apu_ctrl = val;
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [Qemu-devel] [PATCH] arm/zynq: Add software reset
@ 2014-02-03  7:46 Sebastian Huber
  2014-02-05  5:38 ` Peter Crosthwaite
  0 siblings, 1 reply; 6+ messages in thread
From: Sebastian Huber @ 2014-02-03  7:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: Sebastian Huber, peter.crosthwaite

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
 hw/misc/zynq_slcr.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/hw/misc/zynq_slcr.c b/hw/misc/zynq_slcr.c
index e42a5b0..433d439 100644
--- a/hw/misc/zynq_slcr.c
+++ b/hw/misc/zynq_slcr.c
@@ -399,6 +399,9 @@ static void zynq_slcr_write(void *opaque, hwaddr offset,
                 goto bad_reg;
             }
             s->reset[(offset - 0x200) / 4] = val;
+            if (offset == 0x200 && (val & 0x1) != 0) {
+                qemu_system_reset_request();
+            }
             break;
         case 0x300:
             s->apu_ctrl = val;
-- 
1.7.7

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

end of thread, other threads:[~2014-02-05  5:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-08 12:55 [Qemu-devel] [PATCH] arm/zynq: Add software reset Sebastian Huber
2013-05-13 23:49 ` Peter Crosthwaite
2013-06-07  4:19   ` Peter Crosthwaite
2013-06-07  8:22     ` Sebastian Huber
  -- strict thread matches above, loose matches on Subject: below --
2014-02-03  7:46 Sebastian Huber
2014-02-05  5:38 ` Peter Crosthwaite

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).