mirror of https://gitee.com/openkylin/qemu.git
target-tricore: Fix RLC_ADDI, RLC_ADDIH using wrong microcode helper
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Reviewed-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
b8a173b25c
commit
f0cab01b6c
|
@ -4183,10 +4183,10 @@ static void decode_rlc_opc(CPUTriCoreState *env, DisasContext *ctx,
|
||||||
|
|
||||||
switch (op1) {
|
switch (op1) {
|
||||||
case OPC1_32_RLC_ADDI:
|
case OPC1_32_RLC_ADDI:
|
||||||
gen_addi_CC(cpu_gpr_d[r2], cpu_gpr_d[r1], const16);
|
gen_addi_d(cpu_gpr_d[r2], cpu_gpr_d[r1], const16);
|
||||||
break;
|
break;
|
||||||
case OPC1_32_RLC_ADDIH:
|
case OPC1_32_RLC_ADDIH:
|
||||||
gen_addi_CC(cpu_gpr_d[r2], cpu_gpr_d[r1], const16 << 16);
|
gen_addi_d(cpu_gpr_d[r2], cpu_gpr_d[r1], const16 << 16);
|
||||||
break;
|
break;
|
||||||
case OPC1_32_RLC_ADDIH_A:
|
case OPC1_32_RLC_ADDIH_A:
|
||||||
tcg_gen_addi_tl(cpu_gpr_a[r2], cpu_gpr_a[r1], const16 << 16);
|
tcg_gen_addi_tl(cpu_gpr_a[r2], cpu_gpr_a[r1], const16 << 16);
|
||||||
|
|
Loading…
Reference in New Issue