summaryrefslogtreecommitdiffstats
path: root/hw/net/imx_fec.c
diff options
context:
space:
mode:
authorRichard Henderson2021-12-13 18:38:38 +0100
committerRichard Henderson2021-12-24 02:47:01 +0100
commit05bfd4db08608bc4c22de729780c1f74612fbc0e (patch)
tree0828ad00145351584c77a6e3ec71952f79494372 /hw/net/imx_fec.c
parentMerge tag 'for-upstream-mtest' of https://gitlab.com/bonzini/qemu into staging (diff)
downloadqemu-05bfd4db08608bc4c22de729780c1f74612fbc0e.tar.gz
qemu-05bfd4db08608bc4c22de729780c1f74612fbc0e.tar.xz
qemu-05bfd4db08608bc4c22de729780c1f74612fbc0e.zip
target/hppa: Fix deposit assert from trans_shrpw_imm
Because sa may be 0, tcg_gen_deposit_reg(dest, t0, cpu_gr[a->r1], 32 - sa, sa); may attempt a zero-width deposit at bit 32, which will assert for TARGET_REGISTER_BITS == 32. Use the newer extract2 when possible, which itself includes the rotri special case; otherwise mirror the code from trans_shrpw_sar, using concat and shri. Cc: qemu-stable@nongnu.org Resolves: https://gitlab.com/qemu-project/qemu/-/issues/635 Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/net/imx_fec.c')
0 files changed, 0 insertions, 0 deletions