Revision 5c130f65 hw/pflash_cfi02.c

b/hw/pflash_cfi02.c
557 557
        return NULL;
558 558
#endif
559 559
    pfl = qemu_mallocz(sizeof(pflash_t));
560
    pfl->storage = phys_ram_base + off;
560
    /* FIXME: Allocate ram ourselves.  */
561
    pfl->storage = qemu_get_ram_ptr(off);
561 562
    pfl->fl_mem = cpu_register_io_memory(0, pflash_read_ops, pflash_write_ops,
562 563
                                         pfl);
563 564
    pfl->off = off;

Also available in: Unified diff