]> git.proxmox.com Git - mirror_qemu.git/blobdiff - iothread.c
Hexagon (target/hexagon) properly generate TB end for DISAS_NORETURN
[mirror_qemu.git] / iothread.c
index b9f2751382575af4e0d64b2c99864e6c9961423c..7f086387be9a40dcaafd572355b9af3034b37ce5 100644 (file)
@@ -369,3 +369,9 @@ IOThread *iothread_by_id(const char *id)
 {
     return IOTHREAD(object_resolve_path_type(id, TYPE_IOTHREAD, NULL));
 }
+
+bool qemu_in_iothread(void)
+{
+    return qemu_get_current_aio_context() == qemu_get_aio_context() ?
+                    false : true;
+}