Revision 8da3ff18 hw/pflash_cfi02.c

b/hw/pflash_cfi02.c
112 112

  
113 113
    DPRINTF("%s: offset " TARGET_FMT_lx "\n", __func__, offset);
114 114
    ret = -1;
115
    offset -= pfl->base;
116 115
    if (pfl->rom_mode) {
117 116
        /* Lazy reset of to ROMD mode */
118 117
        if (pfl->wcycle == 0)
......
241 240
    }
242 241
    DPRINTF("%s: offset " TARGET_FMT_lx " %08x %d %d\n", __func__,
243 242
            offset, value, width, pfl->wcycle);
244
    offset -= pfl->base;
245 243
    offset &= pfl->chip_len - 1;
246 244

  
247 245
    DPRINTF("%s: offset " TARGET_FMT_lx " %08x %d\n", __func__,

Also available in: Unified diff