From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
To: Sebastian Huber <sebastian.huber@embedded-brains.de>
Cc: qemu-devel@nongnu.org, git@xilinx.com
Subject: Re: [Qemu-devel] [PATCH] arm/zynq: Add software reset
Date: Fri, 7 Jun 2013 14:19:06 +1000 [thread overview]
Message-ID: <CAEgOgz7ZmaJpSPSaT68pU99i4f1baKSFy7LUTYXQpqOMCKwCSA@mail.gmail.com> (raw)
In-Reply-To: <CAEgOgz4F3LU6thSkBwHhPgoVt7_huW-WvxNudCt_mL57+JTHsQ@mail.gmail.com>
Hi Sebastian,
I'd like to get this merged with the fix I suggested. Are you able to
remake or ok if I ammend and resend your patch?
Regards,
Peter
On Tue, May 14, 2013 at 9:49 AM, Peter Crosthwaite
<peter.crosthwaite@xilinx.com> wrote:
> Hi Sebastian,
>
> Thanks for your contribution,
>
> On Wed, May 8, 2013 at 10:55 PM, Sebastian Huber
> <sebastian.huber@embedded-brains.de> wrote:
>> ---
>> 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) {
>
> The reset will only work if you have all the write-ignore bits in val
> cleared. Bit 0 is independent of those. It should read:
>
> if (offset == 0x200 && val & 0x1) {
>
> To mask off all the don't care bits.
>
> Regards,
> Peter
>
>> + qemu_system_reset_request();
>> + }
>> break;
>> case 0x300:
>> s->apu_ctrl = val;
>> --
>> 1.7.7
>>
>>
next prev parent reply other threads:[~2013-06-07 4:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
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=CAEgOgz7ZmaJpSPSaT68pU99i4f1baKSFy7LUTYXQpqOMCKwCSA@mail.gmail.com \
--to=peter.crosthwaite@xilinx.com \
--cc=git@xilinx.com \
--cc=qemu-devel@nongnu.org \
--cc=sebastian.huber@embedded-brains.de \
/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).