From: Sebastian Huber <sebastian.huber@embedded-brains.de>
To: qemu-devel@nongnu.org
Cc: Sebastian Huber <sebastian.huber@embedded-brains.de>,
peter.crosthwaite@xilinx.com
Subject: [Qemu-devel] [PATCH] arm/zynq: Add software reset
Date: Mon, 3 Feb 2014 08:46:12 +0100 [thread overview]
Message-ID: <1391413572-29914-1-git-send-email-sebastian.huber@embedded-brains.de> (raw)
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
next reply other threads:[~2014-02-03 7:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-03 7:46 Sebastian Huber [this message]
2014-02-05 5:38 ` [Qemu-devel] [PATCH] arm/zynq: Add software reset Peter Crosthwaite
-- strict thread matches above, loose matches on Subject: below --
2013-05-08 12:55 Sebastian Huber
2013-05-13 23:49 ` Peter Crosthwaite
2013-06-07 4:19 ` Peter Crosthwaite
2013-06-07 8:22 ` Sebastian Huber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1391413572-29914-1-git-send-email-sebastian.huber@embedded-brains.de \
--to=sebastian.huber@embedded-brains.de \
--cc=peter.crosthwaite@xilinx.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).