mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
Fix a && -> & typo.
Catch wrong/unknown NOR flash command sequences, by Thorsten Zitterell. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3684 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
9596ebb701
commit
7317b8cad7
2 changed files with 7 additions and 2 deletions
|
@ -353,6 +353,8 @@ static void pflash_write (pflash_t *pfl, target_ulong offset, uint32_t value,
|
|||
|
||||
pfl->counter--;
|
||||
break;
|
||||
default:
|
||||
goto error_flash;
|
||||
}
|
||||
return;
|
||||
case 3: /* Confirm mode */
|
||||
|
@ -361,11 +363,14 @@ static void pflash_write (pflash_t *pfl, target_ulong offset, uint32_t value,
|
|||
if (cmd == 0xd0) {
|
||||
pfl->wcycle = 0;
|
||||
pfl->status |= 0x80;
|
||||
break;
|
||||
} else {
|
||||
DPRINTF("%s: unknown command for \"write block\"\n", __func__);
|
||||
PFLASH_BUG("Write block confirm");
|
||||
goto reset_flash;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
goto error_flash;
|
||||
}
|
||||
return;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue