]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/tricore: Fix RCPW/RRPW_INSERT insns for width = 0
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Mon, 28 Aug 2023 11:26:48 +0000 (13:26 +0200)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Thu, 28 Sep 2023 08:45:22 +0000 (10:45 +0200)
commit23fa6f56b33f8fddf86ba4d027fb7d3081440cd9
tree0d690bf8611369c13256f6a363a4b69474776f3d
parent5e0e06d9a2ce13d5b9832f0dddeaf5e2f4f70591
target/tricore: Fix RCPW/RRPW_INSERT insns for width = 0

we would crash if width was 0 for these insns, as tcg_gen_deposit() is
undefined for that case. For TriCore, width = 0 is a mov from the src reg
to the dst reg, so we special case this here.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-ID: <20230828112651.522058-9-kbastian@mail.uni-paderborn.de>
target/tricore/translate.c
tests/tcg/tricore/asm/macros.h
tests/tcg/tricore/asm/test_insert.S