Skip to content

Commit 1247809

Browse files
committed
[ot] hw/misc: pulp_rv_dm: Reset idle cache bitmask
Reset the `idle_bm` on a reset of the Pulp RV_DM, as a system / NDM reset while a hart is halted can cause the hart to resume, whilst the Pulp RV_DM still thinks the hart is halted (thus it never acknowledges the halted state, and it never appears in the DM's `dmstatus`). Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
1 parent 8b6de0e commit 1247809

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hw/misc/pulp_rv_dm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,8 @@ static void pulp_rv_dm_reset(DeviceState *dev)
482482

483483
memset(memory_region_get_ram_ptr(&s->prog), 0, PULP_RV_DM_PROG_SIZE);
484484
memset(s->dmflag_regs, 0, sizeof(s->dmflag_regs));
485+
486+
s->idle_bm = 0;
485487
}
486488

487489
static void pulp_rv_dm_init(Object *obj)

0 commit comments

Comments
 (0)