accel/tcg: Reorg translator_ld*
commit04f8ed114545f01a2fee1121e862e270cdd46741
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 3 Apr 2024 04:26:33 +0000 (2 18:26 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 15 May 2024 06:54:32 +0000 (15 08:54 +0200)
tree31c3140b28f982f877cfdc581895d04f867bd466
parent99977aefd07d85da791e0d851ba2d10d9d5c3094
accel/tcg: Reorg translator_ld*

Reorg translator_access into translator_ld, with a more
memcpy-ish interface.  If both pages are in ram, do not
go through the caller's slow path.

Assert that the access is within the two pages that we are
prepared to protect, per TranslationBlock.  Allow access
prior to pc_first, so long as it is within the first page.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/translator.c