]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user/strace: Expand struct flags to hold a mask
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 7 Jul 2023 20:40:33 +0000 (21:40 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 15 Jul 2023 07:02:32 +0000 (08:02 +0100)
commit40965ad93127204058b0f17719f9579709e4344a
treec5d6ff14ca0847689f083f6f52f68139e9d29903
parent2b730f797eb7b439d8e169d1062fa0a5ec2f4ebf
linux-user/strace: Expand struct flags to hold a mask

A zero bit value does not make sense -- it must relate to
some field in some way.

Define FLAG_BASIC with a build-time sanity check.
Adjust FLAG_GENERIC and FLAG_TARGET to use it.
Add FLAG_GENERIC_MASK and FLAG_TARGET_MASK.

Fix up the existing flag definitions for build errors.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230707204054.8792-6-richard.henderson@linaro.org>
linux-user/strace.c