qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] tcg: Add debug facilities for TCGv
@ 2011-12-10  9:02 Andreas Färber
  2011-12-10  9:02 ` [Qemu-devel] [PATCH 1/4] tcg: Introduce {MAKE,GET}_TCGV_TL macros Andreas Färber
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Andreas Färber @ 2011-12-10  9:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell, Andreas Färber

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 <peter.maydell@linaro.org>

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(-)

-- 
1.7.7

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-12-14 11:43 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-10  9:02 [Qemu-devel] [PATCH 0/4] tcg: Add debug facilities for TCGv Andreas Färber
2011-12-10  9:02 ` [Qemu-devel] [PATCH 1/4] tcg: Introduce {MAKE,GET}_TCGV_TL macros Andreas Färber
2011-12-10  9:02 ` [Qemu-devel] [PATCH 2/4] tcg: Convert *_tl*() macros to inline functions Andreas Färber
2011-12-10 21:06   ` [Qemu-devel] [PATCH v2] " Andreas Färber
2011-12-10  9:02 ` [Qemu-devel] [PATCH 3/4] tcg: Update TCGV_{UNUSED,EQUAL}() macros Andreas Färber
2011-12-10  9:02 ` [Qemu-devel] [PATCH 4/4] tcg: Allow to detect TCGv misuses Andreas Färber
2011-12-10 10:07 ` [Qemu-devel] [PATCH 0/4] tcg: Add debug facilities for TCGv Peter Maydell
2011-12-10 11:14   ` Andreas Färber
2011-12-11 23:28     ` Paul Brook
2011-12-12 10:39       ` Andreas Färber
2011-12-12 15:58         ` Paul Brook
2011-12-13 12:43           ` Andreas Färber
2011-12-13 16:26             ` Paul Brook
2011-12-14 11:41               ` Andreas Färber
2011-12-13 13:11           ` Andreas Färber
2011-12-13 16:23             ` Paul Brook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).