OSDN Git Service

pflash: Dont open memarea for full IO if already done.
authorEdgar E. Iglesias <edgar.iglesias@petalogix.com>
Sun, 24 Jan 2010 18:28:55 +0000 (19:28 +0100)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Sun, 24 Jan 2010 18:28:55 +0000 (19:28 +0100)
commite9cbbcacb65c6868b58ca5a586ea657cdd2a9e92
treef61eaf068a38c269fba20d4b8f03d6ec3b7e17c8
parent4737fa266e54564f48bd8f1d72d50a637e093f8a
pflash: Dont open memarea for full IO if already done.

When wcycle is non zero the area is already opened for readable IO.
Avoiding the re-registration of the memarea significantly speeds up
the flash emulation. In particular for flashes connected through 8 or
16-bit buses.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@petalogix.com>
hw/pflash_cfi01.c