qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 19/22] tcg/sparc64: Reorg goto_tb implementation


From: Alex Bennée
Subject: Re: [PATCH v2 19/22] tcg/sparc64: Reorg goto_tb implementation
Date: Tue, 17 Jan 2023 18:33:03 +0000
User-agent: mu4e 1.9.15; emacs 29.0.60

Richard Henderson <richard.henderson@linaro.org> writes:

> The old sparc64 implementation may replace two insns, which leaves
> a race condition in which a thread could be stopped at a PC in the
> middle of the sequence, and when restarted does not see the complete
> address computation and branches to nowhere.
>
> The new implemetation replaces only one insn, swapping between a
> direct branch and a direct call.  The TCG_REG_TB register is loaded
> from tb->jmp_target_addr[] in the delay slot.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]