mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
tcg/mips: fix field extraction opcode
The "msb" argument should correspond to (len - 1). Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
12a95f320a
commit
2f5a5f5774
@ -2093,11 +2093,11 @@ static inline void tcg_out_op(TCGContext *s, TCGOpcode opc,
|
||||
args[3] + args[4] - 1, args[3]);
|
||||
break;
|
||||
case INDEX_op_extract_i32:
|
||||
tcg_out_opc_bf(s, OPC_EXT, a0, a1, a2 + args[3] - 1, a2);
|
||||
tcg_out_opc_bf(s, OPC_EXT, a0, a1, args[3] - 1, a2);
|
||||
break;
|
||||
case INDEX_op_extract_i64:
|
||||
tcg_out_opc_bf64(s, OPC_DEXT, OPC_DEXTM, OPC_DEXTU, a0, a1,
|
||||
a2 + args[3] - 1, a2);
|
||||
args[3] - 1, a2);
|
||||
break;
|
||||
|
||||
case INDEX_op_brcond_i32:
|
||||
|
Loading…
Reference in New Issue
Block a user