pflash_cfi01: Do not exit() on guest aborting "write to buffer"
commite634054c9d7d4cb89edf2fdefe9ddfb203e653ea
authorMarkus Armbruster <armbru@redhat.com>
Fri, 8 Mar 2019 09:45:57 +0000 (8 10:45 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 30 Jul 2019 20:12:55 +0000 (30 15:12 -0500)
tree687a3d14cee48542323df80d4d902401faaf5846
parent13cb31ce0826c7ab09917161ec00833ecead5462
pflash_cfi01: Do not exit() on guest aborting "write to buffer"

When a guest tries to abort "write to buffer" (command 0xE8), we print
"PFLASH: Possible BUG - Write block confirm", then exit(1).  Letting
the guest terminate QEMU is not a good idea.  Instead, LOG_UNIMP we
screwed up, then reset the device.

Macro PFLASH_BUG() is now unused; delete it.

Suggested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20190308094610.21210-3-armbru@redhat.com>
(cherry picked from commit 2d93bebf81520ccebeb9a3ea9bd051ce088854ea)
*prereq for 3a283507
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/block/pflash_cfi01.c