]> git.proxmox.com Git - mirror_qemu.git/commit
accel/tcg: Add fast path for translator_ld*
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 11 Aug 2022 04:39:29 +0000 (21:39 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 6 Sep 2022 07:04:26 +0000 (08:04 +0100)
commit50627f1b7b1b1db60166a670fbc17623c7d7243e
tree055906a47daef7aa9a8bffc040ca2e435094ccb6
parent306c872103b4d0986c9f671eb7538b0b70bf69b5
accel/tcg: Add fast path for translator_ld*

Cache the translation from guest to host address, so we may
use direct loads when we hit on the primary translation page.

Look up the second translation page only once, during translation.
This obviates another lookup of the second page within tb_gen_code
after translation.

Fixes a bug in that plugin_insn_append should be passed the bytes
in the original memory order, not bswapped by pieces.

Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Tested-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/translate-all.c
accel/tcg/translator.c
include/exec/translator.h