Skip to content

tcg/arm: fix division

Aurelien Jarno qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tcg: add div/rem 32-bit helperstcg-runtime.c tcg/arm/tcg-target.h tcg/hppa/tcg-target.h +4 more+89 -20 replies
2/3tcg/arm: use helpers for divu/remutcg/arm/tcg-target.c tcg/arm/tcg-target.h+0 -950 replies
3/3tcg: declare internal helpers as const and puretcg/tcg-op.h+4 -43 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] tcg/arm: fix division

The division on TCG ARM is currently broken due to to wrong constraints:
"1" and "2" are interpreted as arguments aliasing instead of constraints.

This could obviously be fixed, but the division on TCG ARM becomes quite
complex: for no obvious reason div2/divu2 are implemented instead of div/divu/rem/remu for no obvious reason and the code actually calls the 64-bit helpers for a 32-bit division.

This patch series fixes that by allowing TCG targets to use helpers for the division in addition to the two current implementations.