Skip to contentSkip to conversation

CFI: Fix AMD erase support

PATCH In review Jean-Christophe PLAGNIOL-VILLARD 1 participant 2 messages Feb 24, 2008 – Mar 13, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CFI: Fix AMD erase support

hw/pflash_cfi01.c +1 -1
index b3a8a8e..c360179 100644
@@ -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;
Signature · 1 line
1.5.4
#1 lore raw

No review?

Quoted 17 lines · Jean-Christophe PLAGNIOL-VILLARD
hw/pflash_cfi01.c +1 -1
index b3a8a8e..c360179 100644
@@ -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;
Signature · 1 line
1.5.4