On 10 December 2011 09:02, Andreas Färber <andreas.faer...@web.de> wrote: > 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.
What mismatches does this catch that the existing debug code doesn't? I've always assumed that "TCGv is shorthand for either TCGv_32 or TCGv_64 depending on your target's word length" was a feature, not a bug. If we don't like that we should just drop TCGv completely, no? -- PMM