mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
target/tricore: Swap src and dst reg for RCRR_INSERT
Acked-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Message-ID: <20230828112651.522058-10-kbastian@mail.uni-paderborn.de>
This commit is contained in:
parent
23fa6f56b3
commit
222ff2d358
3 changed files with 18 additions and 4 deletions
|
@ -8223,12 +8223,12 @@ static void decode_32Bit_opc(DisasContext *ctx)
|
|||
temp2 = tcg_temp_new(); /* width*/
|
||||
temp3 = tcg_temp_new(); /* pos */
|
||||
|
||||
CHECK_REG_PAIR(r3);
|
||||
CHECK_REG_PAIR(r2);
|
||||
|
||||
tcg_gen_andi_tl(temp2, cpu_gpr_d[r3+1], 0x1f);
|
||||
tcg_gen_andi_tl(temp3, cpu_gpr_d[r3], 0x1f);
|
||||
tcg_gen_andi_tl(temp2, cpu_gpr_d[r2 + 1], 0x1f);
|
||||
tcg_gen_andi_tl(temp3, cpu_gpr_d[r2], 0x1f);
|
||||
|
||||
gen_insert(cpu_gpr_d[r2], cpu_gpr_d[r1], temp, temp2, temp3);
|
||||
gen_insert(cpu_gpr_d[r3], cpu_gpr_d[r1], temp, temp2, temp3);
|
||||
break;
|
||||
/* RCRW Format */
|
||||
case OPCM_32_RCRW_MASK_INSERT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue