From patchwork Wed Jan 30 16:01:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 216955 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C5B0B2C0094 for ; Thu, 31 Jan 2013 07:56:43 +1100 (EST) Received: from localhost ([::1]:55533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0a75-0007cd-Ns for incoming@patchwork.ozlabs.org; Wed, 30 Jan 2013 11:02:15 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0a6o-0007WU-Eg for qemu-devel@nongnu.org; Wed, 30 Jan 2013 11:02:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0a6k-00082Z-V8 for qemu-devel@nongnu.org; Wed, 30 Jan 2013 11:01:58 -0500 Received: from 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:1d0::1]:60174 helo=mnementh.archaic.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0a6k-00080e-Oo for qemu-devel@nongnu.org; Wed, 30 Jan 2013 11:01:54 -0500 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1U0a6c-0005qp-1i; Wed, 30 Jan 2013 16:01:46 +0000 From: Peter Maydell To: Anthony Liguori Date: Wed, 30 Jan 2013 16:01:44 +0000 Message-Id: <1359561705-22466-2-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1359561705-22466-1-git-send-email-peter.maydell@linaro.org> References: <1359561705-22466-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: qemu-devel@nongnu.org, Paul Brook Subject: [Qemu-devel] [PATCH 1/2] hw/arm_sysctl: Clear sysctl cfgctrl start bit X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Christoffer Dall The start bit should only be set to indicate that a function call is underway, right now. When done with function, clear it. Signed-off-by: Christoffer Dall Signed-off-by: Peter Maydell --- hw/arm_sysctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c index da36f8a..7ecb7da 100644 --- a/hw/arm_sysctl.c +++ b/hw/arm_sysctl.c @@ -334,6 +334,7 @@ static void arm_sysctl_write(void *opaque, hwaddr offset, default: s->sys_cfgstat |= 2; /* error */ } + s->sys_cfgctrl &= ~(1 << 31); return; case 0xa8: /* SYS_CFGSTAT */ if (board_id(s) != BOARD_ID_VEXPRESS) {