Fix QEMU Flash read issue after erasing

After erasing flash on QEMU, it needs to be returned to normal
read state to allow normal read access. However, this is missing
in current SBL QEMU SpiFlashLib.  This patched added the code to
switch back to read mode. It also fixed #552.

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
This commit is contained in:
Maurice Ma
2020-02-02 22:32:28 -08:00
parent c116c33bfe
commit 2a3ca8bf75
@@ -406,5 +406,9 @@ SpiFlashErase (
Ptr += 0x1000;
}
if (ByteCount > 0) {
*(Ptr - 1) = READ_ARRAY_CMD;
}
return EFI_SUCCESS;
}