tcg/i386: Precompute all guest_base parameters
commit913c2bddc2f29fc57ddf70f762a0a218cf17f3fc
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 3 Dec 2018 15:22:57 +0000 (3 09:22 -0600)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 17 Dec 2018 03:04:44 +0000 (17 06:04 +0300)
tree24207a28be557afffef68e29b4b54718654ec227
parent4810d96f03be4d3820563e3c6bf13dfc0627f205
tcg/i386: Precompute all guest_base parameters

These values are constant between all qemu_ld/st invocations;
there is no need to figure this out each time.  If we cannot
use a segment or an offset directly for guest_base, load the
value into a register in the prologue.

Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/i386/tcg-target.inc.c