]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/qemu.h
bsd-user: Define target_arg64
authorWarner Losh <imp@bsdimp.com>
Mon, 31 Jan 2022 23:06:46 +0000 (16:06 -0700)
committerWarner Losh <imp@bsdimp.com>
Sun, 27 Feb 2022 04:05:21 +0000 (21:05 -0700)
commit0ff0508286106c2b71cdc8e83e5ad93003b91be4
treeb74f435e634a355ca31e41be8aba66eeba655576
parent647afdf1836548146b77c6ca68e93c7acfe35738
bsd-user: Define target_arg64

target_arg64 is a generic way to extract 64-bits from a pair of
arguments. On 32-bit platforms, it returns them joined together as
appropriate. On 64-bit platforms, it returns the first arg because it's
already 64-bits.

Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/qemu.h