]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/qemu.h
bsd-user; Update the definitions of __put_user and __get_user macros
authorWarner Losh <imp@bsdimp.com>
Sun, 13 Aug 2023 08:41:24 +0000 (10:41 +0200)
committerWarner Losh <imp@bsdimp.com>
Mon, 28 Aug 2023 18:16:18 +0000 (12:16 -0600)
commit6538c682db9c2b34fbffc22e111a4bcd8f4b02de
treef06c7599a07a7fe294002680a06faadaff708c20
parent15b950ecd16ecc6e9a1f21e1f9f185ee61a5a1d5
bsd-user; Update the definitions of __put_user and __get_user macros

Use __builtin_choose_expr to avoid type promotion from ?:
in __put_user_e and __get_user_e macros.
Copied from linux-user/qemu.h, originally by Blue Swirl.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/qemu.h
bsd-user/signal.c