Revision 8da3ff18 hw/pflash_cfi01.c

b/hw/pflash_cfi01.c
103 103
    uint8_t *p;
104 104

  
105 105
    ret = -1;
106
    offset -= pfl->base;
107 106
    boff = offset & 0xFF; /* why this here ?? */
108 107

  
109 108
    if (pfl->width == 2)
......
203 202
    uint8_t cmd;
204 203

  
205 204
    cmd = value;
206
    offset -= pfl->base;
207 205

  
208 206
    DPRINTF("%s: writing offset " TARGET_FMT_lx " value %08x width %d wcycle 0x%x\n",
209 207
            __func__, offset, value, width, pfl->wcycle);

Also available in: Unified diff