Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
target/loongarch/tcg/tlb_helper: fix ubsan with right shift
Found with functional test func-loongarch64-loongarch64_virt. ../target/loongarch/tcg/tlb_helper.c:470:31: runtime error: shift exponent 244 is too large for 64-bit type 'long unsigned int' #0 0x560036305470 in helper_invtlb_page_asid_or_g ../target/loongarch/tcg/tlb_helper.c:470 Signed-off-by: Pierrick Bouvier <[email protected]>
- Loading branch information