]> xenbits.xensource.com Git - qemu-xen-unstable.git/commitdiff
CFI: Fix AMD erase support
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 14 Mar 2008 06:45:21 +0000 (06:45 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 14 Mar 2008 06:45:21 +0000 (06:45 +0000)
(Jean-Christophe PLAGNIOL-VILLARD)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4060 c046a42c-6fe2-441c-8c8c-71466251a162

hw/pflash_cfi01.c

index b3a8a8e3fba89bb57a52e9f5225d6db357cf016e..c360179c3cfa465dfc833909c928e7d47e06d44f 100644 (file)
@@ -275,7 +275,7 @@ static void pflash_write (pflash_t *pfl, target_ulong offset, uint32_t value,
             if (cmd == 0xd0) { /* confirm */
                 pfl->wcycle = 1;
                 pfl->status |= 0x80;
-            } if (cmd == 0xff) { /* read array mode */
+            } else if (cmd == 0xff) { /* read array mode */
                 goto reset_flash;
             } else
                 goto error_flash;