tcg/aarch64: Fix patching of LDR in tb_target_set_jmp_target
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 3 Feb 2023 17:16:31 +0000 (17:16 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 4 Feb 2023 16:19:43 +0000 (06:19 -1000)
commita2495ede07498ee36b18b03e7038ba30c9871bb2
tree25ccb05b03a1a9ee19c75f348b5a5f06bcf150d7
parent5f0dd8cd33cb6c753ed4435e13bd0622a38a9967
tcg/aarch64: Fix patching of LDR in tb_target_set_jmp_target

'offset' should be bits [23:5] of LDR instruction, rather than [4:0].

Fixes: d59d83a1c388 ("tcg/aarch64: Reorg goto_tb implementation")
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Reported-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/aarch64/tcg-target.c.inc