mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 19:33:39 +08:00
a05cee93f4
Rather than using a zero tuple to end the table, use a macro
to apply ARRAY_SIZE and pass that on to the convert functions.
This fixes two bugs in which the conversion functions required
that both the target and host masks be non-zero in order to
continue, rather than require both target and host masks be
zero in order to terminate.
This affected mmap_flags_tbl when the host does not support
all of the flags we wish to convert (e.g. MAP_UNINITIALIZED).
Mapping these flags to zero is good enough, and matches how
the kernel ignores bits that are unknown.
Fixes:
|
||
---|---|---|
.. | ||
arm | ||
freebsd | ||
host | ||
i386 | ||
include | ||
netbsd | ||
openbsd | ||
x86_64 | ||
bsd-file.h | ||
bsd-proc.h | ||
bsdload.c | ||
elfcore.c | ||
elfload.c | ||
errno_defs.h | ||
main.c | ||
meson.build | ||
mmap.c | ||
qemu.h | ||
signal-common.h | ||
signal.c | ||
strace.c | ||
syscall_defs.h | ||
trace-events | ||
trace.h | ||
uaccess.c |