Re: [PATCH v2] target/loongarch: Avoid bits shift exceeding width of bool type

2024-09-29 Thread gaosong
在 2024/9/14 下午2:46, Bibo Mao 写道: 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 bit

[PATCH v2] target/loongarch: Avoid bits shift exceeding width of bool type

2024-09-13 Thread Bibo Mao
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