]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/onenand.c
Add endianness as io mem parameter
[mirror_qemu.git] / hw / onenand.c
index f7afecaaab51f0f9c11a2f0bba7e6274cdfe5e78..d9cdcf2944784a1dbca6b24d31d0dbf029ef54fc 100644 (file)
@@ -630,7 +630,7 @@ void *onenand_init(uint32_t id, int regshift, qemu_irq irq)
     s->blockwp = qemu_malloc(s->blocks);
     s->density_mask = (id & (1 << 11)) ? (1 << (6 + ((id >> 12) & 7))) : 0;
     s->iomemtype = cpu_register_io_memory(onenand_readfn,
-                    onenand_writefn, s);
+                    onenand_writefn, s, DEVICE_NATIVE_ENDIAN);
     if (!dinfo)
         s->image = memset(qemu_malloc(size + (size >> 5)),
                         0xff, size + (size >> 5));