Commit 9248f4133f6f3d3a3e059fa07bf98f05748ecd08

Authored by aurel32
1 parent ba70a624

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
Showing 1 changed file with 1 additions and 1 deletions
hw/pflash_cfi01.c
... ... @@ -275,7 +275,7 @@ static void pflash_write (pflash_t *pfl, target_ulong offset, uint32_t value,
275 275 if (cmd == 0xd0) { /* confirm */
276 276 pfl->wcycle = 1;
277 277 pfl->status |= 0x80;
278   - } if (cmd == 0xff) { /* read array mode */
  278 + } else if (cmd == 0xff) { /* read array mode */
279 279 goto reset_flash;
280 280 } else
281 281 goto error_flash;
... ...