]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target-tricore: fix offset masking in BOL format
authorAlex Zuepke <alexander.zuepke@hs-rm.de>
Fri, 12 Dec 2014 14:10:27 +0000 (15:10 +0100)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Sun, 21 Dec 2014 18:32:03 +0000 (18:32 +0000)
Signed-off-by: Alex Zuepke <alexander.zuepke@hs-rm.de>
Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
target-tricore/tricore-opcodes.h

index 0a9122cfb97669f21159c545ca51d87caa8e96d1..70ac5ffc7dc245e5dc142cdb7c5951e015a239f6 100644 (file)
 /* 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))