hw/pflash: implement update buffer for block writes
commit284a7ee2e290e0c9b8cd3ea6164d92386933054f
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 8 Jan 2024 16:08:59 +0000 (8 17:08 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 19 Jan 2024 11:28:59 +0000 (19 12:28 +0100)
treea5e71084ac5d3e544bd296eb27e01071884107a3
parent5dd58358a57048e5ceabf5c91c0544f4f56afdcd
hw/pflash: implement update buffer for block writes

Add an update buffer where all block updates are staged.
Flush or discard updates properly, so we should never see
half-completed block writes in pflash storage.

Drop a bunch of FIXME comments ;)

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240108160900.104835-4-kraxel@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/block/pflash_cfi01.c
hw/block/pflash_cfi02.c
hw/block/trace-events