Skip to content

tcg: Add debug facilities for TCGv

Andreas Färber qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tcg: Introduce {MAKE,GET}_TCGV_TL macrostcg/tcg-op.h+4 -00 replies
2/4tcg: Convert *_tl*() macros to inline functionstcg/tcg-op.h+866 -1551 reply
3/4tcg: Update TCGV_{UNUSED,EQUAL}() macrostcg/tcg-op.h+3 -40 replies
4/4tcg: Allow to detect TCGv misusesdef-helper.h tcg/tcg-op.h tcg/tcg.h+23 -50 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/4] tcg: Add debug facilities for TCGv

Hello,

Working on 16- and 20-bit targets using TARGET_LONG_BITS == 32, I found it too easy to accidentally use, e.g., tcg_temp_free() in place of tcg_temp_free_i32(). In case of 78k0/rl78 it may not practically matter yet, but it complicates going from a 32-bit target to 64 bits, as in the case of arm.

This series refactors TCG code to allow using a dedicated struct for TCGv, to make variable type mismatches show up as compilation errors.

This series only adds the infrastructure but does not enable it by default. A series adapting target-i386 will be posted independently as an RFC.

Regards,
Andreas

Cc Peter Maydell <[email protected]>

Andreas Färber (4):
tcg: Introduce {MAKE,GET}_TCGV_TL macros
tcg: Convert *_tl*() macros to inline functions
tcg: Update TCGV_{UNUSED,EQUAL}() macros
tcg: Allow to detect TCGv misuses

 def-helper.h |   13 +-
 tcg/tcg-op.h | 1046 +++++++++++++++++++++++++++++++++++++++++++++++++---------
 tcg/tcg.h    |    1 +
 3 files changed, 896 insertions(+), 164 deletions(-)
Signature · 1 line
1.7.7