diff options
author | Song Gao <gaosong@loongson.cn> | 2024-07-24 09:58:53 +0800 |
---|---|---|
committer | Song Gao <gaosong@loongson.cn> | 2024-07-24 16:52:18 +0800 |
commit | a18ffbcf8b9fabfc6c850ebb1d3e40a21b885c67 (patch) | |
tree | bcbf7d3dec04d8bbf325e2db1b1e4b6b103924b2 /module-common.c | |
parent | 6410f877f5ed535acd01bbfaa4baec379e44d0ef (diff) | |
download | qemu-a18ffbcf8b9fabfc6c850ebb1d3e40a21b885c67.zip qemu-a18ffbcf8b9fabfc6c850ebb1d3e40a21b885c67.tar.gz qemu-a18ffbcf8b9fabfc6c850ebb1d3e40a21b885c67.tar.bz2 |
target/loongarch: Fix helper_lddir() a CID INTEGER_OVERFLOW issue
When the lddir level is 4 and the base is a HugePage, we may try to put value 4
into a field in the TLBENTRY that is only 2 bits wide.
Fixes: Coverity CID 1547717
Fixes: 9c70db9a43388 ("target/loongarch: Fix tlb huge page loading issue")
Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240724015853.1317396-1-gaosong@loongson.cn>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions