Patchwork [1/2] hw/arm_sysctl: Clear sysctl cfgctrl start bit

login
register
mail settings
Submitter Peter Maydell
Date Jan. 30, 2013, 4:01 p.m.
Message ID <1359561705-22466-2-git-send-email-peter.maydell@linaro.org>
Download mbox | patch
Permalink /patch/216955/
State New
Headers show

Comments

Peter Maydell - Jan. 30, 2013, 4:01 p.m.
From: Christoffer Dall <c.dall@virtualopensystems.com>

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 <c.dall@virtualopensystems.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 hw/arm_sysctl.c |    1 +
 1 file changed, 1 insertion(+)

Patch

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) {