[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 7/9] tz-ppc: add dummy read/write methods
From: |
Li Qiang |
Subject: |
Re: [PATCH v4 7/9] tz-ppc: add dummy read/write methods |
Date: |
Tue, 11 Aug 2020 23:39:55 +0800 |
P J P <ppandit@redhat.com> 于2020年8月11日周二 下午7:44写道:
>
> From: Prasad J Pandit <pjp@fedoraproject.org>
>
> Add tz-ppc-dummy mmio read/write methods to avoid assert failure
> during initialisation.
>
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
> ---
> hw/misc/tz-ppc.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> Update v4: add Reviewed-by tag
> -> https://lists.nongnu.org/archive/html/qemu-devel/2020-07/msg05303.html
>
> diff --git a/hw/misc/tz-ppc.c b/hw/misc/tz-ppc.c
> index 6431257b52..36495c68e7 100644
> --- a/hw/misc/tz-ppc.c
> +++ b/hw/misc/tz-ppc.c
> @@ -196,7 +196,21 @@ static bool tz_ppc_dummy_accepts(void *opaque, hwaddr
> addr,
> g_assert_not_reached();
> }
>
> +static uint64_t tz_ppc_dummy_read(void *opaque, hwaddr addr, unsigned size)
> +{
> + g_assert_not_reached();
> +}
> +
> +static void tz_ppc_dummy_write(void *opaque, hwaddr addr,
> + uint64_t data, unsigned size)
> +{
> + g_assert_not_reached();
> +}
> +
> static const MemoryRegionOps tz_ppc_dummy_ops = {
> + /* define r/w methods to avoid assert failure in memory_region_init_io */
> + .read = tz_ppc_dummy_read,
> + .write = tz_ppc_dummy_write,
> .valid.accepts = tz_ppc_dummy_accepts,
> };
>
> --
> 2.26.2
>
- [PATCH v4 2/9] pci-host: designware: add pcie-msi read method, (continued)
- [PATCH v4 2/9] pci-host: designware: add pcie-msi read method, P J P, 2020/08/11
- [PATCH v4 3/9] vfio: add quirk device write method, P J P, 2020/08/11
- [PATCH v4 4/9] prep: add ppc-parity write method, P J P, 2020/08/11
- [PATCH v4 5/9] nvram: add nrf51_soc flash read method, P J P, 2020/08/11
- [PATCH v4 6/9] spapr_pci: add spapr msi read method, P J P, 2020/08/11
- [PATCH v4 7/9] tz-ppc: add dummy read/write methods, P J P, 2020/08/11
- Re: [PATCH v4 7/9] tz-ppc: add dummy read/write methods,
Li Qiang <=
- [PATCH v4 8/9] imx7-ccm: add digprog mmio write method, P J P, 2020/08/11
- [PATCH v4 9/9] memory: assert MemoryRegionOps callbacks are defined, P J P, 2020/08/11
- Re: [PATCH v4 0/9] memory: assert and define MemoryRegionOps callbacks, David Gibson, 2020/08/13
- Re: [PATCH v4 0/9] memory: assert and define MemoryRegionOps callbacks, Philippe Mathieu-Daudé, 2020/08/16