]> git.proxmox.com Git - qemu.git/blobdiff - rwhandler.c
balloon: Add braces around if statements
[qemu.git] / rwhandler.c
index c50c4bf6035b2206fa74e406c0e09e7af8f40fe6..bb2238ff1efa9bdd3061b5884269513b69b5b772 100644 (file)
@@ -2,8 +2,6 @@
 #include "ioport.h"
 #include "cpu-all.h"
 
-#if !defined(CONFIG_USER_ONLY)
-
 #define RWHANDLER_WRITE(name, len, type) \
 static void name(void *opaque, type addr, uint32_t value) \
 {\
@@ -37,14 +35,14 @@ static CPUReadMemoryFunc * const cpu_io_memory_simple_read[] = {
     &cpu_io_memory_simple_readl,
 };
 
-int cpu_register_io_memory_simple(struct ReadWriteHandler *handler)
+int cpu_register_io_memory_simple(struct ReadWriteHandler *handler, int endian)
 {
     if (!handler->read || !handler->write) {
         return -1;
     }
     return cpu_register_io_memory(cpu_io_memory_simple_read,
                                   cpu_io_memory_simple_write,
-                                  handler);
+                                  handler, endian);
 }
 
 RWHANDLER_WRITE(ioport_simple_writeb, 1, uint32_t);
@@ -87,5 +85,3 @@ int register_ioport_simple(ReadWriteHandler* handler,
     }
     return 0;
 }
-
-#endif