From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awyuN-0004OM-3J for qemu-devel@nongnu.org; Sun, 01 May 2016 17:28:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awyuB-0003xn-Kb for qemu-devel@nongnu.org; Sun, 01 May 2016 17:28:01 -0400 Received: from mail-lf0-x22b.google.com ([2a00:1450:4010:c07::22b]:35637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awyuA-0003sk-9N for qemu-devel@nongnu.org; Sun, 01 May 2016 17:27:55 -0400 Received: by mail-lf0-x22b.google.com with SMTP id j8so38171353lfd.2 for ; Sun, 01 May 2016 14:27:34 -0700 (PDT) From: Sergey Fedorov Date: Mon, 2 May 2016 00:27:12 +0300 Message-Id: <1462138032-3748-1-git-send-email-sergey.fedorov@linaro.org> Subject: [Qemu-devel] [PATCH] fixup! tcg/mips: Make direct jump patching thread-safe List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Sergey Fedorov , Sergey Fedorov , Aurelien Jarno , Richard Henderson From: Sergey Fedorov Signed-off-by: Sergey Fedorov Signed-off-by: Sergey Fedorov --- tcg/mips/tcg-target.inc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c index b0440b9c5a79..b514cd7114d2 100644 --- a/tcg/mips/tcg-target.inc.c +++ b/tcg/mips/tcg-target.inc.c @@ -1885,6 +1885,6 @@ static void tcg_target_init(TCGContext *s) void tb_set_jmp_target1(uintptr_t jmp_addr, uintptr_t addr) { - atomic_set(ptr, deposit32(OPC_J, 0, 26, addr >> 2)); + atomic_set(jmp_addr, deposit32(OPC_J, 0, 26, addr >> 2)); flush_icache_range(jmp_addr, jmp_addr + 4); } -- 1.9.1