From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uko8q-00060M-Qw for qemu-devel@nongnu.org; Fri, 07 Jun 2013 00:19:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uko8p-0002PV-Sh for qemu-devel@nongnu.org; Fri, 07 Jun 2013 00:19:08 -0400 Received: from mail-bk0-x236.google.com ([2a00:1450:4008:c01::236]:40094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uko8p-0002PI-MR for qemu-devel@nongnu.org; Fri, 07 Jun 2013 00:19:07 -0400 Received: by mail-bk0-f54.google.com with SMTP id it16so31985bkc.27 for ; Thu, 06 Jun 2013 21:19:06 -0700 (PDT) MIME-Version: 1.0 Sender: peter.crosthwaite@petalogix.com In-Reply-To: References: <1368017724-21851-1-git-send-email-sebastian.huber@embedded-brains.de> Date: Fri, 7 Jun 2013 14:19:06 +1000 Message-ID: From: Peter Crosthwaite Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [PATCH] arm/zynq: Add software reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sebastian Huber Cc: qemu-devel@nongnu.org, git@xilinx.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 wrote: > Hi Sebastian, > > Thanks for your contribution, > > On Wed, May 8, 2013 at 10:55 PM, Sebastian Huber > 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 >> >>