tcg: add tcg_reg_sync()
commit7f6ceedf9c5da96ee2b1fe42573b781243bc2828
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 9 Oct 2012 19:53:06 +0000 (9 21:53 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 28 Oct 2012 13:54:21 +0000 (28 14:54 +0100)
tree476019fca19a8eaabafa70864701a953977dcdcc
parent639368dd685f89b0567b56304c62937ad0ef8248
tcg: add tcg_reg_sync()

Add a new function tcg_reg_sync() to synchronize the canonical location
of a temp with the value in the associated register, but without freeing
it. Rewrite tcg_reg_free() to first call tcg_reg_sync() and then to free
the register.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/tcg.c