From 77322d9c7d9af690674ed2abebf8542d509f2a8d Mon Sep 17 00:00:00 2001 From: James Wainwright Date: Thu, 5 Dec 2024 14:24:34 +0000 Subject: [PATCH] [ot] hw/opentitan: set reset value for hmac's cfg register --- hw/opentitan/ot_hmac.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/opentitan/ot_hmac.c b/hw/opentitan/ot_hmac.c index 52ef9d255c16..3d58666ea82d 100644 --- a/hw/opentitan/ot_hmac.c +++ b/hw/opentitan/ot_hmac.c @@ -762,12 +762,15 @@ static void ot_hmac_realize(DeviceState *dev, Error **errp) static void ot_hmac_reset(DeviceState *dev) { OtHMACState *s = OT_HMAC(dev); + OtHMACRegisters *r = s->regs; ibex_irq_set(&s->clkmgr, false); memset(s->ctx, 0, sizeof(*(s->ctx))); memset(s->regs, 0, sizeof(*(s->regs))); + r->cfg = 0x4100u; + ot_hmac_update_irqs(s); ot_hmac_update_alert(s);