mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 09:55:55 +00:00
target-tricore: fix BO_OFF10_SEXT calculating the wrong offset
The lower part of the combined offset was sign extended and could lead to wrong results. Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
This commit is contained in:
parent
7bd0eaec31
commit
4959d6b366
|
@ -107,7 +107,7 @@
|
|||
/* BO Format */
|
||||
#define MASK_OP_BO_OFF10(op) (MASK_BITS_SHIFT(op, 16, 21) + \
|
||||
(MASK_BITS_SHIFT(op, 28, 31) << 6))
|
||||
#define MASK_OP_BO_OFF10_SEXT(op) (MASK_BITS_SHIFT_SEXT(op, 16, 21) + \
|
||||
#define MASK_OP_BO_OFF10_SEXT(op) (MASK_BITS_SHIFT(op, 16, 21) + \
|
||||
(MASK_BITS_SHIFT_SEXT(op, 28, 31) << 6))
|
||||
#define MASK_OP_BO_OP2(op) MASK_BITS_SHIFT(op, 22, 27)
|
||||
#define MASK_OP_BO_S2(op) MASK_BITS_SHIFT(op, 12, 15)
|
||||
|
|
Loading…
Reference in a new issue