From: David Brenken Date: Mon, 24 Jun 2019 07:03:37 +0000 (+0200) Subject: tricore: fix RRPW_INSERT instruction X-Git-Tag: qemu-xen-4.13.0-rc1~109^2~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=61b2625071cffc737859fb6d6d19d9eee366205e;p=qemu-xen.git tricore: fix RRPW_INSERT instruction Signed-off-by: Andreas Konopik Signed-off-by: David Brenken Signed-off-by: Georg Hofstetter Signed-off-by: Robert Rasche Signed-off-by: Lars Biermanski Reviewed-by: Bastian Koppelmann Message-Id: <20190624070339.4408-4-david.brenken@efs-auto.org> Signed-off-by: Bastian Koppelmann --- diff --git a/target/tricore/translate.c b/target/tricore/translate.c index bd913d71a1..5d4febf1c0 100644 --- a/target/tricore/translate.c +++ b/target/tricore/translate.c @@ -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: