The pflash device lacks a reset() function.
When a machine is resetted, the flash might be in an
inconsistent state, leading to unexpected behavior:
https://bugzilla.redhat.com/show_bug.cgi?id=1678713
Resolve this issue by adding a DeviceReset() handler.
Both CFI01/CFI02 devices are fixed by this series.
Regards,
Phil.
Philippe Mathieu-Daudé (5):
hw/block/pflash_cfi01: Removed an unused timer
hw/block/pflash_cfi01: Extract the pflash_reset() code
hw/block/pflash_cfi01: Add the DeviceReset() handler
hw/block/pflash_cfi02: Extract the pflash_reset() code
hw/block/pflash_cfi02: Add the DeviceReset() handler
hw/block/pflash_cfi01.c | 31 ++++++++++++-------------------
hw/block/pflash_cfi02.c | 31 +++++++++++++++++++++----------
2 files changed, 33 insertions(+), 29 deletions(-)
--
2.20.1