From 3c4477d622c5f464c7702f71c1fbfbd1249ec9f9 Mon Sep 17 00:00:00 2001 From: lazymio Date: Sat, 12 Feb 2022 19:57:19 +0100 Subject: [PATCH] Fix another undefined shift found by sanitizer --- qemu/target/arm/internals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/target/arm/internals.h b/qemu/target/arm/internals.h index 9aba020d..5bb1ad0e 100644 --- a/qemu/target/arm/internals.h +++ b/qemu/target/arm/internals.h @@ -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)