]> git.proxmox.com Git - qemu.git/blobdiff - hw/pl031.c
Add endianness as io mem parameter
[qemu.git] / hw / pl031.c
index 45b7032c5002f278cb6b38ed2a751da5e848a2f9..e3700c169c61bc0c493be44033c637976f523174 100644 (file)
@@ -189,7 +189,8 @@ static int pl031_init(SysBusDevice *dev)
     pl031_state *s = FROM_SYSBUS(pl031_state, dev);
     struct tm tm;
 
-    iomemtype = cpu_register_io_memory(pl031_readfn, pl031_writefn, s);
+    iomemtype = cpu_register_io_memory(pl031_readfn, pl031_writefn, s,
+                                       DEVICE_NATIVE_ENDIAN);
     if (iomemtype == -1) {
         hw_error("pl031_init: Can't register I/O memory\n");
     }