CFI: Fix AMD erase support
(Jean-Christophe PLAGNIOL-VILLARD) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4060 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
ba70a624e9
commit
9248f4133f
|
@ -275,7 +275,7 @@ static void pflash_write (pflash_t *pfl, target_ulong offset, uint32_t value,
|
||||||
if (cmd == 0xd0) { /* confirm */
|
if (cmd == 0xd0) { /* confirm */
|
||||||
pfl->wcycle = 1;
|
pfl->wcycle = 1;
|
||||||
pfl->status |= 0x80;
|
pfl->status |= 0x80;
|
||||||
} if (cmd == 0xff) { /* read array mode */
|
} else if (cmd == 0xff) { /* read array mode */
|
||||||
goto reset_flash;
|
goto reset_flash;
|
||||||
} else
|
} else
|
||||||
goto error_flash;
|
goto error_flash;
|
||||||
|
|
Loading…
Reference in a new issue