[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PULL 03/11] sm501: Add some more unimplemented registers
From: |
Peter Maydell |
Subject: |
Re: [Qemu-ppc] [PULL 03/11] sm501: Add some more unimplemented registers |
Date: |
Thu, 18 Jan 2018 12:01:38 +0000 |
On 11 January 2018 at 04:59, David Gibson <address@hidden> wrote:
> From: BALATON Zoltan <address@hidden>
>
> These are not really implemented (just return zero or default values)
> but add these so guests accessing them can run.
>
> Signed-off-by: BALATON Zoltan <address@hidden>
> Signed-off-by: David Gibson <address@hidden>
> ---
> hw/display/sm501.c | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/hw/display/sm501.c b/hw/display/sm501.c
> index b9b611131e..4f7dc59b25 100644
> --- a/hw/display/sm501.c
> +++ b/hw/display/sm501.c
> @@ -795,6 +795,8 @@ static uint64_t sm501_system_config_read(void *opaque,
> hwaddr addr,
> case SM501_ARBTRTN_CONTROL:
> ret = s->arbitration_control;
> break;
> + case SM501_COMMAND_LIST_STATUS:
> + ret = 0x00180002; /* FIFOs are empty, everything idle */
> case SM501_IRQ_MASK:
> ret = s->irq_mask;
> break;
Is this new case missing a "break;" statement? Coverity points
out that we fall through and overwrite the previous assignment
to 'ret' (CID 1385154).
thanks
-- PMM
- [Qemu-ppc] [PULL 00/11] ppc-for-2.12 queue 20180111, David Gibson, 2018/01/11
- [Qemu-ppc] [PULL 02/11] sm501: Add panel hardware cursor registers also to read function, David Gibson, 2018/01/11
- [Qemu-ppc] [PULL 03/11] sm501: Add some more unimplemented registers, David Gibson, 2018/01/11
- Re: [Qemu-ppc] [PULL 03/11] sm501: Add some more unimplemented registers,
Peter Maydell <=
- [Qemu-ppc] [PULL 10/11] hw/ppc: Remove the deprecated spapr-pci-vfio-host-bridge device, David Gibson, 2018/01/11
- [Qemu-ppc] [PULL 09/11] Update dtc to fix compilation problem on Mac OS 10.6, David Gibson, 2018/01/11
- [Qemu-ppc] [PULL 05/11] spapr_pci: use warn_report(), David Gibson, 2018/01/11
- [Qemu-ppc] [PULL 11/11] spapr: Correct compatibility mode setting for hotplugged CPUs, David Gibson, 2018/01/11
- [Qemu-ppc] [PULL 04/11] ppc4xx_i2c: Implement basic I2C functions, David Gibson, 2018/01/11
- [Qemu-ppc] [PULL 06/11] hw/ide: Emulate SiI3112 SATA controller, David Gibson, 2018/01/11