diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-14 06:45:21 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-14 06:45:21 +0000 |
commit | 9248f4133f6f3d3a3e059fa07bf98f05748ecd08 (patch) | |
tree | 4dd6f99019fc91ae0a34514013c0aebf76aea1d9 /hw/pflash_cfi01.c | |
parent | ba70a624e9fae13d349111311b522771122a4dd9 (diff) |
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
Diffstat (limited to 'hw/pflash_cfi01.c')
-rw-r--r-- | hw/pflash_cfi01.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pflash_cfi01.c b/hw/pflash_cfi01.c index b3a8a8e3fb..c360179c3c 100644 --- a/hw/pflash_cfi01.c +++ b/hw/pflash_cfi01.c @@ -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; |