aboutsummaryrefslogtreecommitdiff
path: root/scripts/tracetool/backend/dtrace.py
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2024-09-14 14:46:45 +0800
committerSong Gao <gaosong@loongson.cn>2024-10-16 15:56:42 +0800
commit4521167f5783eca168d7480adbc634c3654d419d (patch)
tree1da5f274c5b43e4619f30c4e11b4c10b34ccb4e9 /scripts/tracetool/backend/dtrace.py
parente1ecdc630d7aaee85cbf22b3b6b3a4da19763521 (diff)
downloadqemu-4521167f5783eca168d7480adbc634c3654d419d.zip
qemu-4521167f5783eca168d7480adbc634c3654d419d.tar.gz
qemu-4521167f5783eca168d7480adbc634c3654d419d.tar.bz2
target/loongarch: Avoid bits shift exceeding width of bool type
Variable env->cf[i] is defined as bool type, it is treated as int type with shift operation. However the max possible width is 56 for the shift operation, exceeding the width of int type. And there is existing api read_fcc() which is converted to u64 type with bitwise shift, it can be used to dump fp registers into coredump note segment. Resolves: Coverity CID 1561133 Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240914064645.2099169-1-maobibo@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'scripts/tracetool/backend/dtrace.py')
0 files changed, 0 insertions, 0 deletions