aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/imx_rngc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/imx_rngc.c')
-rw-r--r--hw/misc/imx_rngc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/misc/imx_rngc.c b/hw/misc/imx_rngc.c
index 632c037..082c698 100644
--- a/hw/misc/imx_rngc.c
+++ b/hw/misc/imx_rngc.c
@@ -228,8 +228,10 @@ static void imx_rngc_realize(DeviceState *dev, Error **errp)
sysbus_init_mmio(sbd, &s->iomem);
sysbus_init_irq(sbd, &s->irq);
- s->self_test_bh = qemu_bh_new(imx_rngc_self_test, s);
- s->seed_bh = qemu_bh_new(imx_rngc_seed, s);
+ s->self_test_bh = qemu_bh_new_guarded(imx_rngc_self_test, s,
+ &dev->mem_reentrancy_guard);
+ s->seed_bh = qemu_bh_new_guarded(imx_rngc_seed, s,
+ &dev->mem_reentrancy_guard);
}
static void imx_rngc_reset(DeviceState *dev)