From patchwork Sun May 1 21:27:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sergey.fedorov@linaro.org X-Patchwork-Id: 8989551 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4CBADBF29F for ; Sun, 1 May 2016 21:28:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 92ED420123 for ; Sun, 1 May 2016 21:28:23 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F38B0201FA for ; Sun, 1 May 2016 21:28:22 +0000 (UTC) Received: from localhost ([::1]:34377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awyuY-0004a8-Ir for patchwork-qemu-devel@patchwork.kernel.org; Sun, 01 May 2016 17:28:18 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=YoWLnIN2j/DtS+wI/KcrWS1dB4jireqTVdw9/vcnikQ=; b=NHVqbA5ZLTGo+4Fr9nxJ/FI2+CC40NspNZckU00rP/xYpLaiqnqmvVKU28u2TLJaXy KSZZMg3/YF7E0GQI18Hy+39RI4tehyYyTawlMYJCKqNgwWYxE99iUYLTkAdpJLZv4Hwy x6+PfcZ9cgjKzqDdg5mqoCwmnY12JHe5AJerE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YoWLnIN2j/DtS+wI/KcrWS1dB4jireqTVdw9/vcnikQ=; b=YxEgGbi8UHNDPMEtatClZXJhGAy/VCdDicFdL0mBui1+8KNkamaecQ7zkObxn9rlOx s9NsEYYoyL+wNJtjjyITGlJCR4LH5mXLqxCcxWOdcaKS1wwGOanetbhMte5vfdPBWVEQ WiWbLQyY6DrCIvE72K9B4XJ7i5IgJa6gkxuYLNxN+s1/2xPbQGv3bXWnJVMeSyxEz2i+ YXYBalP1IbbpZsS0/ZLeeoxMDhtxSaVgbGPhi+uDOL/bVF6HuzNsbd6HQr/g2C/W3Woc kYoV2b46jfOFj3NBoeKZGoSjLM7vliV+EnmXuioY92j2ffZjMWM4Lu3tIjTysBgUYq5H sGtQ== X-Gm-Message-State: AOPr4FX+6ol/ZaUFGiSSGB0xaasXlA3p0t9rmrETmCXU0cz/1nTNcMhMcpCt4RBFcv6OUSSs X-Received: by 10.112.95.20 with SMTP id dg20mr13365613lbb.58.1462138050573; Sun, 01 May 2016 14:27:30 -0700 (PDT) Received: from sergey-laptop.Dlink (broadband-46-188-121-115.2com.net. [46.188.121.115]) by smtp.gmail.com with ESMTPSA id pb3sm2338856lbb.37.2016.05.01.14.27.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 01 May 2016 14:27:29 -0700 (PDT) From: Sergey Fedorov To: qemu-devel@nongnu.org Date: Mon, 2 May 2016 00:27:12 +0300 Message-Id: <1462138032-3748-1-git-send-email-sergey.fedorov@linaro.org> X-Mailer: git-send-email 1.9.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22b Subject: [Qemu-devel] [PATCH] fixup! tcg/mips: Make direct jump patching thread-safe X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sergey Fedorov , Aurelien Jarno , Sergey Fedorov , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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); }