]> git.proxmox.com Git - qemu.git/commit
hw/pflash_cfi01: Make read after byte-write or erase return status
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 28 Feb 2013 18:23:12 +0000 (18:23 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 28 Feb 2013 18:23:12 +0000 (18:23 +0000)
commit6e392787c85809671033ec419d8e8ecf684d55da
tree049a52a7d518f2fcdf1cd2ee4b7c1c9b8f1323be
parent5c78d6a84b504e831adc8f1917cde0c79061dff0
hw/pflash_cfi01: Make read after byte-write or erase return status

The Intel flash command set requires that a read operation after
doing a 'single byte write' command returns the status register;
add this case to pflash_read() so we return the correct information.
Similarly, the case for the 0x28 flavour of block erase was missing.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Tested-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: 1358777318-7579-2-git-send-email-peter.maydell@linaro.org
hw/pflash_cfi01.c