diff options
| author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2026-10-27 22:51:36 +0800 |
|---|---|---|
| committer | Huacai Chen <chenhuacai@loongson.cn> | 2026-10-27 22:51:36 +0800 |
| commit | b3e1c11698ea80c9c94e0aae042bbca6688d627f (patch) | |
| tree | aa9b11d5ad4d89dc8de18c167af1582b707ceb38 /tools/lib/python | |
| parent | 67ab1a331481ef282c53003e6c041c8c4348d4cd (diff) | |
LoongArch: BPF: Clean up and decouple is32 parameter from move_imm()
The current move_imm() relies on the 'is32' parameter for both ALU32 and
JMP32, forcing the helper to internally clear the upper 32 bits. However
this parameter is redundant for all 64-bit immediate loads. Furthermore,
it is even undesirable for load/store signed address offset computations.
Clean up move_imm() by removing the 'is32' parameter which allows it to
focus on loading values, while moving the zero-extension logic outward
to the explicit callers. For 64-bit and load-store operations, just drop
the parameter.
This is preparation for later patch, no functional changes.
Acked-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
