Philippe Gerum wrote:
 static void vga_map(PCIDevice *pci_dev, int region_num,
                     uint32_t addr, uint32_t size, int type)
diff --git a/qemu/qemu-kvm.h b/qemu/qemu-kvm.h
index 7e28428..9ba81a3 100644
--- a/qemu/qemu-kvm.h
+++ b/qemu/qemu-kvm.h
@@ -114,6 +114,10 @@ extern kvm_context_t kvm_context;
 #define kvm_enabled() (0)
 #define qemu_kvm_irqchip_in_kernel() (0)
 #define qemu_kvm_pit_in_kernel() (0)
+#define qemu_kvm_cpu_env(cpu)          ({ (void)cpu; NULL; })
+#define kvm_save_registers(cpu)                do { (void)cpu; } while(0)
+#define kvm_load_registers(env)                do { (void)env; } while(0)
+#define kvm_init_new_ap(cpu, env)      do { (void)cpu; (void)env; } while(0)
 #endif

Please use static inline functions rather #defines, especially with those statement expressions.

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to