These patches avoid some clang sanitizer warnings triggered on target-arm code which inadvertently shifts into the sign bit of a signed integer (which is undefined behaviour in C).
Changes v1->v2: * made all the CPSR_* defines unsigned for consistency (suggested by rth in review) Peter Maydell (2): target-arm: Use sextract32() in branch decode target-arm: Avoid "1 << 31" undefined behaviour target-arm/cpu.h | 32 ++++++++++++++++---------------- target-arm/helper.c | 4 ++-- target-arm/translate.c | 5 +++-- 3 files changed, 21 insertions(+), 20 deletions(-) -- 1.7.9.5