Fix another undefined shift found by sanitizer

This commit is contained in:
lazymio
2022-02-12 19:57:19 +01:00
parent 93c602ead1
commit 3c4477d622

View File

@ -470,7 +470,7 @@ static inline uint32_t syn_data_abort_with_iss(int same_el,
int wnr, int fsc,
bool is_16bit)
{
return (EC_DATAABORT << ARM_EL_EC_SHIFT) | (same_el << ARM_EL_EC_SHIFT)
return ( (uint32_t)EC_DATAABORT << ARM_EL_EC_SHIFT) | ( (uint32_t)same_el << ARM_EL_EC_SHIFT)
| (is_16bit ? 0 : ARM_EL_IL)
| ARM_EL_ISV | (sas << 22) | (sse << 21) | (srt << 16)
| (sf << 15) | (ar << 14)