]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/core/cpu.h
cputlb: Restrict SavedIOTLB to system emulation
[mirror_qemu.git] / include / hw / core / cpu.h
index 4871ad85f0744b47c4d183dcf70bb81a55801304..ee8d6b40b3b9d8382c34285c042cf02ab2f0fdd1 100644 (file)
@@ -226,7 +226,7 @@ struct CPUWatchpoint {
     QTAILQ_ENTRY(CPUWatchpoint) entry;
 };
 
-#ifdef CONFIG_PLUGIN
+#if defined(CONFIG_PLUGIN) && !defined(CONFIG_USER_ONLY)
 /*
  * For plugins we sometime need to save the resolved iotlb data before
  * the memory regions get moved around  by io_writex.
@@ -410,9 +410,11 @@ struct CPUState {
 
 #ifdef CONFIG_PLUGIN
     GArray *plugin_mem_cbs;
+#if !defined(CONFIG_USER_ONLY)
     /* saved iotlb data from io_writex */
     SavedIOTLB saved_iotlb;
-#endif
+#endif /* !CONFIG_USER_ONLY */
+#endif /* CONFIG_PLUGIN */
 
     /* TODO Move common fields from CPUArchState here. */
     int cpu_index;