diff options
author | Qi Hu <huqi@loongson.cn> | 2022-10-15 17:27:54 +0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-10-25 22:01:14 +1000 |
commit | f072a1ae7fb47db75eb3c6b960759c908884f585 (patch) | |
tree | 7fa17e262853d28740798596b4434362d0db02c8 /accel/tcg/cpu-exec.c | |
parent | 0585105c806d3bf301eebc33115a0790fcfc1d9c (diff) | |
download | qemu-f072a1ae7fb47db75eb3c6b960759c908884f585.zip qemu-f072a1ae7fb47db75eb3c6b960759c908884f585.tar.gz qemu-f072a1ae7fb47db75eb3c6b960759c908884f585.tar.bz2 |
tcg/loongarch64: Add direct jump support
Similar to the ARM64, LoongArch has PC-relative instructions such as
PCADDU18I. These instructions can be used to support direct jump for
LoongArch. Additionally, if instruction "B offset" can cover the target
address(target is within ±128MB range), a single "B offset" plus a nop
will be used by "tb_target_set_jump_target".
Signed-off-by: Qi Hu <huqi@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: WANG Xuerui <git@xen0n.name>
Message-Id: <20221015092754.91971-1-huqi@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'accel/tcg/cpu-exec.c')
0 files changed, 0 insertions, 0 deletions