summary refs log tree commit diff stats
path: root/net/netmap.c
diff options
context:
space:
mode:
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>2021-03-05 14:06:38 +0100
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>2021-03-14 14:49:01 +0100
commita21993c7f98862823280d1eb6d3e93cf6267896f (patch)
tree95cba878e0753b1816e70c6f5a47de812d0e0416 /net/netmap.c
parent007479842b27e03173a333b8c2e0dae14be64f8d (diff)
downloadfocaccia-qemu-a21993c7f98862823280d1eb6d3e93cf6267896f.tar.gz
focaccia-qemu-a21993c7f98862823280d1eb6d3e93cf6267896f.zip
target/tricore: Fix OPC2_32_RRPW_EXTR for width=0
if width was 0 we would run into the assertion:

qemu-system-tricore: tcg/tcg-op.c:217: tcg_gen_sari_i32: Assertion `arg2 >= 0 && arg2 < 32' failed.o

The instruction manual specifies undefined behaviour for this case. So
we bring this in line with the golden Infineon simlator 'tsim', which
simply writes 0 to the result in case of width=0.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Diffstat (limited to 'net/netmap.c')
0 files changed, 0 insertions, 0 deletions