Revision 5c130f65 hw/pflash_cfi01.c
b/hw/pflash_cfi01.c | ||
---|---|---|
519 | 519 |
|
520 | 520 |
pfl = qemu_mallocz(sizeof(pflash_t)); |
521 | 521 |
|
522 |
pfl->storage = phys_ram_base + off; |
|
522 |
/* FIXME: Allocate ram ourselves. */ |
|
523 |
pfl->storage = qemu_get_ram_ptr(off); |
|
523 | 524 |
pfl->fl_mem = cpu_register_io_memory(0, |
524 | 525 |
pflash_read_ops, pflash_write_ops, pfl); |
525 | 526 |
pfl->off = off; |
Also available in: Unified diff