summary refs log tree commit diff stats
path: root/scripts/qapi/backend.py
diff options
context:
space:
mode:
authorIcenowy Zheng <uwu@icenowy.me>2025-04-17 15:22:06 +0800
committerAlistair Francis <alistair.francis@wdc.com>2025-05-19 13:38:04 +1000
commit22b448ccc6611a59d4aa54419f4d88c1f343cb35 (patch)
tree8e2cf5a114749a4eb3bc00b912e6187aa14a7162 /scripts/qapi/backend.py
parentad63158bdb33dab5704ea1cf740d2ea0387175df (diff)
downloadfocaccia-qemu-22b448ccc6611a59d4aa54419f4d88c1f343cb35.tar.gz
focaccia-qemu-22b448ccc6611a59d4aa54419f4d88c1f343cb35.zip
common-user/host/riscv: use tail pseudoinstruction for calling tail
The j pseudoinstruction maps to a JAL instruction, which can only handle
a jump to somewhere with a signed 20-bit destination. In case of static
linking and LTO'ing this easily leads to "relocation truncated to fit"
error.

Switch to use tail pseudoinstruction, which is the standard way to
tail-call a function in medium code model (emits AUIPC+JALR).

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250417072206.364008-1-uwu@icenowy.me>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Cc: qemu-stable@nongnu.org
Diffstat (limited to 'scripts/qapi/backend.py')
0 files changed, 0 insertions, 0 deletions