diff options
author | David Brenken <david.brenken@efs-auto.de> | 2019-06-24 09:03:37 +0200 |
---|---|---|
committer | Bastian Koppelmann <kbastian@mail.uni-paderborn.de> | 2019-06-25 12:11:43 +0200 |
commit | 61b2625071cffc737859fb6d6d19d9eee366205e (patch) | |
tree | fcd86be985409fb89951d1c78ab9055263291b59 /target/tricore | |
parent | 4e6fd2e3ad7b0c1c06902646dab53fb8088d89ec (diff) | |
download | qemu-61b2625071cffc737859fb6d6d19d9eee366205e.zip qemu-61b2625071cffc737859fb6d6d19d9eee366205e.tar.gz qemu-61b2625071cffc737859fb6d6d19d9eee366205e.tar.bz2 |
tricore: fix RRPW_INSERT instruction
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>
Diffstat (limited to 'target/tricore')
-rw-r--r-- | target/tricore/translate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/tricore/translate.c b/target/tricore/translate.c index bd913d7..5d4febf 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: |