From d1c1d88ce6fd768cb98cd7af81b1b23ac9fe168d Mon Sep 17 00:00:00 2001 From: David Brenken Date: Thu, 7 Feb 2019 08:39:28 +0100 Subject: tricore: fixed RCR_CADDN instruction Signed-off-by: Christian Richter Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski Message-Id: <20190207073928.4048-3-david.brenken@efs-auto.org> Signed-off-by: Bastian Koppelmann --- target/tricore/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/tricore/translate.c b/target/tricore/translate.c index 5846f95316..b12c391be5 100644 --- a/target/tricore/translate.c +++ b/target/tricore/translate.c @@ -5871,8 +5871,8 @@ static void decode_rcr_cond_select(CPUTriCoreState *env, DisasContext *ctx) cpu_gpr_d[r3]); break; case OPC2_32_RCR_CADDN: - gen_condi_add(TCG_COND_EQ, cpu_gpr_d[r1], const9, cpu_gpr_d[r3], - cpu_gpr_d[r4]); + gen_condi_add(TCG_COND_EQ, cpu_gpr_d[r1], const9, cpu_gpr_d[r4], + cpu_gpr_d[r3]); break; case OPC2_32_RCR_SEL: temp = tcg_const_i32(0); -- cgit v1.2.3