From: Alex Zuepke Date: Fri, 12 Dec 2014 14:10:27 +0000 (+0100) Subject: target-tricore: fix offset masking in BOL format X-Git-Tag: v2.3.0-rc0~125^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=781b717c5049f42d45d31fd47617f3129c07541c;p=thirdparty%2Fqemu.git target-tricore: fix offset masking in BOL format Signed-off-by: Alex Zuepke Reviewed-by: Bastian Koppelmann Signed-off-by: Bastian Koppelmann --- diff --git a/target-tricore/tricore-opcodes.h b/target-tricore/tricore-opcodes.h index 0a9122cfb97..70ac5ffc7dc 100644 --- a/target-tricore/tricore-opcodes.h +++ b/target-tricore/tricore-opcodes.h @@ -114,7 +114,7 @@ /* BOL Format */ #define MASK_OP_BOL_OFF16(op) ((MASK_BITS_SHIFT(op, 16, 21) + \ (MASK_BITS_SHIFT(op, 28, 31) << 6)) + \ - (MASK_BITS_SHIFT(op, 22, 27) >> 10)) + (MASK_BITS_SHIFT(op, 22, 27) << 10)) #define MASK_OP_BOL_OFF16_SEXT(op) ((MASK_BITS_SHIFT(op, 16, 21) + \ (MASK_BITS_SHIFT(op, 28, 31) << 6)) + \ (MASK_BITS_SHIFT_SEXT(op, 22, 27) << 10))