[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL 2/4] q800: add a block backend to the PRAM
From: |
Peter Maydell |
Subject: |
Re: [PULL 2/4] q800: add a block backend to the PRAM |
Date: |
Fri, 24 Jan 2020 12:48:43 +0000 |
On Tue, 7 Jan 2020 at 14:40, Laurent Vivier <address@hidden> wrote:
>
> This allows to save and restore the content of the PRAM.
> It may be useful if we want to check the configuration or to change it.
>
> The backend is added using mtd interface, for instance:
>
> ... -drive file=pram.img,format=raw,if=mtd ...
>
> where pram.img is the file where the data will be stored, its size must
> be 256 bytes.
>
> Signed-off-by: Laurent Vivier <address@hidden>
> Message-Id: <address@hidden>
> +static void pram_update(MacVIAState *m)
> +{
> + if (m->blk) {
> + blk_pwrite(m->blk, 0, m->mos6522_via1.PRAM,
> + sizeof(m->mos6522_via1.PRAM), 0);
> + }
> +}
Hi -- Coverity warns (CID 1412799) that this isn't checking
the return value from blk_pwrite().
thanks
-- PMM
- [PULL 0/4] Q800 for 5.0 patches, Laurent Vivier, 2020/01/07
- [PULL 2/4] q800: add a block backend to the PRAM, Laurent Vivier, 2020/01/07
- Re: [PULL 2/4] q800: add a block backend to the PRAM,
Peter Maydell <=
- [PULL 1/4] q800: fix mac_via RTC PRAM commands, Laurent Vivier, 2020/01/07
- [PULL 4/4] target/m68k: only change valid bits in CACR, Laurent Vivier, 2020/01/07
- [PULL 3/4] q800: implement mac rom reset function for BIOS-less mode, Laurent Vivier, 2020/01/07
- Re: [PULL 0/4] Q800 for 5.0 patches, Peter Maydell, 2020/01/07