Revision e9cbbcac hw/pflash_cfi01.c

b/hw/pflash_cfi01.c
247 247
    DPRINTF("%s: writing offset " TARGET_FMT_plx " value %08x width %d wcycle 0x%x\n",
248 248
            __func__, offset, value, width, pfl->wcycle);
249 249

  
250
    /* Set the device in I/O access mode */
251
    cpu_register_physical_memory(pfl->base, pfl->total_len, pfl->fl_mem);
250
    if (!pfl->wcycle) {
251
        /* Set the device in I/O access mode */
252
        cpu_register_physical_memory(pfl->base, pfl->total_len, pfl->fl_mem);
253
    }
252 254

  
253 255
    switch (pfl->wcycle) {
254 256
    case 0:

Also available in: Unified diff