hw/pflash_cfi02: Fix lazy reset of ROMD mode
commit5145b3d1cc4dc77d82086d99b0690a76e1073071
authorJordan Justen <jordan.l.justen@intel.com>
Sun, 3 Apr 2011 20:16:26 +0000 (3 13:16 -0700)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 9 Apr 2011 16:32:13 +0000 (9 18:32 +0200)
treec908db2929e668316d7cb335b4b9e57462a478ae
parent29e5badadffe2cc70a911a95e258d1fb01f2db71
hw/pflash_cfi02: Fix lazy reset of ROMD mode

When checking pfl->rom_mode for when to lazily reenter ROMD mode,
the value was check was the opposite of what it should have been.
This prevent the part from returning to ROMD mode after a write
was made to the CFI rom region.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/pflash_cfi02.c