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