]> git.proxmox.com Git - mirror_qemu.git/blobdiff - softmmu_template.h
Unbreak PCI config register, noticed by Stefan Weil.
[mirror_qemu.git] / softmmu_template.h
index 9bae4f6282e5aa5a99283f7066a2ecb7d87e5a86..1c12c4241134ddffb914ac5420c6aaf8279d26d1 100644 (file)
@@ -68,6 +68,9 @@ static inline DATA_TYPE glue(io_read, SUFFIX)(target_phys_addr_t physaddr,
     res |= (uint64_t)io_mem_read[index][2](io_mem_opaque[index], physaddr + 4) << 32;
 #endif
 #endif /* SHIFT > 2 */
+#ifdef USE_KQEMU
+    env->last_io_time = cpu_get_time_fast();
+#endif
     return res;
 }
 
@@ -201,6 +204,9 @@ static inline void glue(io_write, SUFFIX)(target_phys_addr_t physaddr,
     io_mem_write[index][2](io_mem_opaque[index], physaddr + 4, val >> 32);
 #endif
 #endif /* SHIFT > 2 */
+#ifdef USE_KQEMU
+    env->last_io_time = cpu_get_time_fast();
+#endif
 }
 
 void REGPARM(2) glue(glue(__st, SUFFIX), MMUSUFFIX)(target_ulong addr,