tcg: save vaddr temp for plugin usage
commitfcc54ab5c7ca84ae72e8bf3781c33c9193a911aa
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 25 Feb 2020 17:49:08 +0000 (25 17:49 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 25 Feb 2020 20:20:23 +0000 (25 20:20 +0000)
tree4d477931fc17110ae94d83618dd2dcf22e55b0a4
parenta0dafafebaefadc1eb883c124830b22d64ad0f8a
tcg: save vaddr temp for plugin usage

While do_gen_mem_cb does copy (via extu_tl_i64) vaddr into a new temp
this won't help if the vaddr temp gets clobbered by the actual
load/store op. To avoid this clobbering we explicitly copy vaddr
before the op to ensure it is live my the time we do the
instrumentation.

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Cc: qemu-stable@nongnu.org
Message-Id: <20200225124710.14152-18-alex.bennee@linaro.org>
tcg/tcg-op.c