Message ID | 20200624185523.762240-9-ppandit@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | memory: assert and define MemoryRegionOps callbacks | expand |
P J P <ppandit@redhat.com> 于2020年6月25日周四 上午3:01写道: > > From: Prasad J Pandit <pjp@fedoraproject.org> > > Add digprog mmio write method to avoid assert failure during > initialisation. > > Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Reviewed-by: Li Qiang <liq3ea@gmail.com> > --- > hw/misc/imx7_ccm.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > 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__); > +} > + > static const struct MemoryRegionOps imx7_digprog_ops = { > .read = imx7_set_clr_tog_read, > + .write = imx7_digprog_write, > .endianness = DEVICE_NATIVE_ENDIAN, > .impl = { > .min_access_size = 4, > -- > 2.26.2 >
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__); +} + static const struct MemoryRegionOps imx7_digprog_ops = { .read = imx7_set_clr_tog_read, + .write = imx7_digprog_write, .endianness = DEVICE_NATIVE_ENDIAN, .impl = { .min_access_size = 4,