Skip to content

Commit b35d216

Browse files
committed
[ot] hw/opentitan: set reset value for hmac's cfg register
1 parent cc81106 commit b35d216

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hw/opentitan/ot_hmac.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,12 +762,15 @@ static void ot_hmac_realize(DeviceState *dev, Error **errp)
762762
static void ot_hmac_reset(DeviceState *dev)
763763
{
764764
OtHMACState *s = OT_HMAC(dev);
765+
OtHMACRegisters *r = s->regs;
765766

766767
ibex_irq_set(&s->clkmgr, false);
767768

768769
memset(s->ctx, 0, sizeof(*(s->ctx)));
769770
memset(s->regs, 0, sizeof(*(s->regs)));
770771

772+
r->cfg = 0x4100;
773+
771774
ot_hmac_update_irqs(s);
772775
ot_hmac_update_alert(s);
773776

0 commit comments

Comments
 (0)