diff options
Diffstat (limited to 'hw/9pfs')
-rw-r--r-- | hw/9pfs/coth.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/9pfs/coth.h b/hw/9pfs/coth.h index c512899..f83c7dd 100644 --- a/hw/9pfs/coth.h +++ b/hw/9pfs/coth.h @@ -51,7 +51,9 @@ */ \ qemu_coroutine_yield(); \ qemu_bh_delete(co_bh); \ - code_block; \ + do { \ + code_block; \ + } while (0); \ /* re-enter back to qemu thread */ \ qemu_coroutine_yield(); \ } while (0) |