On Tue, 30 Jun 2020 at 13:31, P J P <ppan...@redhat.com> wrote: > > From: Prasad J Pandit <p...@fedoraproject.org> > > Add digprog mmio write method to avoid assert failure during > initialisation. > > Reviewed-by: Li Qiang <liq...@gmail.com> > Signed-off-by: Prasad J Pandit <p...@fedoraproject.org> > --- > hw/misc/imx7_ccm.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > Update v3: Add Reviewed-by: ... > -> https://lists.gnu.org/archive/html/qemu-devel/2020-06/msg09452.html > > diff --git a/hw/misc/imx7_ccm.c b/hw/misc/imx7_ccm.c > index 02fc1ae8d0..5ac5ecf74c 100644 > --- a/hw/misc/imx7_ccm.c > +++ b/hw/misc/imx7_ccm.c > @@ -131,8 +131,15 @@ static const struct MemoryRegionOps imx7_set_clr_tog_ops > = { > }, > }; > > +static void imx7_digprog_write(void *opaque, hwaddr addr, > + uint64_t data, unsigned size) > +{ > + qemu_log_mask(LOG_UNIMP, "%s not implemented\n", __func__); > +}
This covers a single register (DIGPROG) which is read-only (it returns a silicon revision number). So this is not a LOG_UNIMP, but a LOG_GUEST_ERROR: qemu_log_mask(LOG_GUEST_ERROR, "Guest write to read-only ANALOG_DIGPROG register\n"); thanks -- PMM