tcg: Use offsets not indices for TCGv_*
commite89b28a63501c0ad6d2501fe851d0c5202055e70
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 20 Oct 2017 19:08:19 +0000 (20 12:08 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Oct 2017 20:53:36 +0000 (24 13:53 -0700)
tree8e4859ec99e87c099d3808bfd122e7ed9b2aef13
parent55c3ceef61fcf06fc98ddc752b7cce788ce7680b
tcg: Use offsets not indices for TCGv_*

Using the offset of a temporary, relative to TCGContext, rather than
its index means that we don't use 0.  That leaves offset 0 free for
a NULL representation without having to leave index 0 unused.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tcg.h