mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
target/tricore: Add shuffle insn
this is based on code by volumit (https://github.com/volumit/qemu/). Reported in https://gitlab.com/qemu-project/qemu/-/issues/1667 and https://gitlab.com/qemu-project/qemu/-/issues/1452. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Message-Id: <20230614100039.1337971-7-kbastian@mail.uni-paderborn.de>
This commit is contained in:
parent
0eaafe33d0
commit
4e3377bb5a
4 changed files with 46 additions and 0 deletions
|
@ -5011,6 +5011,14 @@ static void decode_rc_logical_shift(DisasContext *ctx)
|
|||
case OPC2_32_RC_XOR:
|
||||
tcg_gen_xori_tl(cpu_gpr_d[r2], cpu_gpr_d[r1], const9);
|
||||
break;
|
||||
case OPC2_32_RC_SHUFFLE:
|
||||
if (has_feature(ctx, TRICORE_FEATURE_162)) {
|
||||
TCGv temp = tcg_constant_i32(const9);
|
||||
gen_helper_shuffle(cpu_gpr_d[r2], cpu_gpr_d[r1], temp);
|
||||
} else {
|
||||
generate_trap(ctx, TRAPC_INSN_ERR, TIN2_IOPC);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
generate_trap(ctx, TRAPC_INSN_ERR, TIN2_IOPC);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue