mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue