From patchwork Sat Dec 22 19:03:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 207935 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 91FB92C008F for ; Sun, 23 Dec 2012 06:03:45 +1100 (EST) Received: from localhost ([::1]:33233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmUMI-0006z3-Pk for incoming@patchwork.ozlabs.org; Sat, 22 Dec 2012 14:03:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmUM3-0006yu-Ll for qemu-devel@nongnu.org; Sat, 22 Dec 2012 14:03:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmULw-0007jm-DO for qemu-devel@nongnu.org; Sat, 22 Dec 2012 14:03:27 -0500 Received: from mail-vb0-f48.google.com ([209.85.212.48]:45176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmULw-0007ji-91 for qemu-devel@nongnu.org; Sat, 22 Dec 2012 14:03:20 -0500 Received: by mail-vb0-f48.google.com with SMTP id fc21so6220332vbb.7 for ; Sat, 22 Dec 2012 11:03:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=l3HhZngaZQhkFwnJzqw9E5qz2QbjjrP1nvVbcnkLXag=; b=KjSr5u9aXIQYhRi1awgbl6KRH/VUF/4m+VzSuVVbnOZUypX7QtNyvJLHT+BPfRlkKV AcvMO7MShRtsCd1QOxdtxuY4jcE8CpTGA2zxEuLko4D5vVAJRgDCjpJCRct46IRKsV+n j99m5WQSj/PxBf2S8MA8Xz2Vmri5bvu1Z9V0p0lmIgo+PKLoI+EOBQU7K++z06dABKXT BNUz4/gy9TF0cjx3AzjHl/I18ffVVOK5vm+orkgghJvMekAQNMiNhjjS3OdzcQk7fHK9 y3xc45DiwRvNTBwNLC1kZOlGDuhnwMoc5DOyaWExIhCwAxMxDWSElGqs9MUjig58qesQ W9Aw== X-Received: by 10.220.228.1 with SMTP id jc1mr25446313vcb.74.1356202999377; Sat, 22 Dec 2012 11:03:19 -0800 (PST) Received: from localhost.localdomain (pool-72-80-83-148.nycmny.fios.verizon.net. [72.80.83.148]) by mx.google.com with ESMTPS id dh10sm12370936veb.8.2012.12.22.11.03.18 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 22 Dec 2012 11:03:18 -0800 (PST) From: Christoffer Dall To: qemu-devel@nongnu.org Date: Sat, 22 Dec 2012 14:03:13 -0500 Message-Id: <1356202993-55730-1-git-send-email-c.dall@virtualopensystems.com> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQm8JSGZwvl4v/MoR5fFy1B5d5sh/UY33jqhxffN/pRY7yuyYTDrK96zZn7Zm6Tv9dO24h/B X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.212.48 Cc: Peter Maydell , Christoffer Dall , kvmarm@lists.cs.columbia.edu Subject: [Qemu-devel] [PATCH] arm: vexpress: 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 The start bit should only be set to indicate that a function call is underway, right now. When done with function, clear it. Cc: Peter Maydell Signed-off-by: Christoffer Dall Reviewed-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 58eb982..12a62fe 100644 --- a/hw/arm_sysctl.c +++ b/hw/arm_sysctl.c @@ -332,6 +332,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) {