Skip to contentSkip to conversation

arm: vexpress: Clear sysctl cfgctrl start bit

PATCH In review Christoffer Dall 2 participants 3 messages Dec 22, 2012 – Dec 23, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: vexpress: Clear sysctl cfgctrl start bit

The start bit should only be set to indicate that a function call is underway, right now. When done with function, clear it.

---
 hw/arm_sysctl.c |    1 +
 1 file changed, 1 insertion(+)
hw/arm_sysctl.c +1 -0
index 58eb982..12a62fe 100644
@@ -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) {
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 2 lines · 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.

Looks plausible but I'd like a crosscheck that this is how the hardware really behaves.

-- PMM

#2 lore raw
Quoted 8 lines · Peter Maydell
Quoted 2 lines · 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.

Looks plausible but I'd like a crosscheck that this is how the hardware really behaves.

sure, on my vexpress box that's certainly the case by experimentation though.

-Christoffer