On 28/8/23 13:26, Bastian Koppelmann wrote:
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: Richard Henderson <[email protected]>
Signed-off-by: Bastian Koppelmann <[email protected]>
---
  target/tricore/translate.c          | 10 ++++++++--
  tests/tcg/tricore/asm/macros.h      | 15 +++++++++++++++
  tests/tcg/tricore/asm/test_insert.S |  9 +++++++++
  3 files changed, 32 insertions(+), 2 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>


Reply via email to