Skip to content

Commit

Permalink
tricore: fix RRPW_INSERT instruction
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Konopik <andreas.konopik@efs-auto.de>
Signed-off-by: David Brenken <david.brenken@efs-auto.de>
Signed-off-by: Georg Hofstetter <georg.hofstetter@efs-auto.de>
Signed-off-by: Robert Rasche <robert.rasche@efs-auto.de>
Signed-off-by: Lars Biermanski <lars.biermanski@efs-auto.de>
Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-Id: <20190624070339.4408-4-david.brenken@efs-auto.org>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
  • Loading branch information
David Brenken authored and bkoppelmann committed Jun 25, 2019
1 parent 4e6fd2e commit 61b2625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target/tricore/translate.c
Expand Up @@ -7025,9 +7025,9 @@ static void decode_rrpw_extract_insert(CPUTriCoreState *env, DisasContext *ctx)
}
break;
case OPC2_32_RRPW_INSERT:
if (pos + width <= 31) {
if (pos + width <= 32) {
tcg_gen_deposit_tl(cpu_gpr_d[r3], cpu_gpr_d[r1], cpu_gpr_d[r2],
width, pos);
pos, width);
}
break;
default:
Expand Down

0 comments on commit 61b2625

Please sign in to comment.