Re: [PATCH v3] tcg/loongarch64: Add direct jump support

2022-10-15 Thread WANG Xuerui
On 10/14/22 11:40, Qi Hu wrote: 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 off

Re: [PATCH v3] tcg/loongarch64: Add direct jump support

2022-10-14 Thread Richard Henderson
On 10/14/22 14:40, Qi Hu wrote: 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 off

[PATCH v3] tcg/loongarch64: Add direct jump support

2022-10-13 Thread Qi Hu
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 "t