diff options
author | Shaobo Song | 2022-06-24 17:02:17 +0200 |
---|---|---|
committer | Richard Henderson | 2022-07-12 07:00:10 +0200 |
commit | ba8924113ca459d02ee67656a713f7ff494b968e (patch) | |
tree | 950686eb0dfad3877581a155d22b34247f596534 /scripts/qapi/gen.py | |
parent | Merge tag 'pull-target-arm-20220711' of https://git.linaro.org/people/pmaydel... (diff) | |
download | qemu-ba8924113ca459d02ee67656a713f7ff494b968e.tar.gz qemu-ba8924113ca459d02ee67656a713f7ff494b968e.tar.xz qemu-ba8924113ca459d02ee67656a713f7ff494b968e.zip |
tcg: Fix returned type in alloc_code_gen_buffer_splitwx_memfd()
This fixes a bug in POSIX-compliant environments. Since we had allocated
a buffer named 'tcg-jit' with read-write access protections we need a int
type to combine these access flags and return it, whereas we had inexplicably
return a bool type. It may cause an unnecessary protection change in
tcg_region_init().
Cc: qemu-stable@nongnu.org
Fixes: 7be9ebcf924c ("tcg: Return the map protection from alloc_code_gen_buffer")
Signed-off-by: Shaobo Song <shnusongshaobo@gmail.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220624150216.3627-1-shnusongshaobo@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'scripts/qapi/gen.py')
0 files changed, 0 insertions, 0 deletions