Revision 1eed09cb hw/onenand.c
b/hw/onenand.c | ||
---|---|---|
631 | 631 |
s->secs = size >> 9; |
632 | 632 |
s->blockwp = qemu_malloc(s->blocks); |
633 | 633 |
s->density_mask = (id & (1 << 11)) ? (1 << (6 + ((id >> 12) & 7))) : 0; |
634 |
s->iomemtype = cpu_register_io_memory(0, onenand_readfn,
|
|
634 |
s->iomemtype = cpu_register_io_memory(onenand_readfn, |
|
635 | 635 |
onenand_writefn, s); |
636 | 636 |
if (bdrv_index == -1) |
637 | 637 |
s->image = memset(qemu_malloc(size + (size >> 5)), |
Also available in: Unified diff