pflash_cfi01: Do not exit() on guest aborting "write to buffer"
commit2d93bebf81520ccebeb9a3ea9bd051ce088854ea
authorMarkus Armbruster <armbru@redhat.com>
Fri, 8 Mar 2019 09:45:57 +0000 (8 10:45 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 11 Mar 2019 21:53:44 +0000 (11 22:53 +0100)
tree84bd943d5dc3fcdbf8ffb3bda8ed98d10c18a28a
parent1643406520f8ff6f4cc11062950f5f898b03b573
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>
hw/block/pflash_cfi01.c