From patchwork Fri Nov 30 21:52:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 152597 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4170643ljp; Fri, 30 Nov 2018 13:58:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/UvbBLKr+JiVcqaAUZm22t1BuKx9VQIp4woaRP8rsEOgRSaiu3t0ZfliM71clVGbXqTTn7+ X-Received: by 2002:a25:b104:: with SMTP id g4-v6mr7064223ybj.112.1543615086391; Fri, 30 Nov 2018 13:58:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543615086; cv=none; d=google.com; s=arc-20160816; b=ulCv3dV8Mb4Rt1xv6cM9CyQxKzLUXOQTjVRz21MAbNrAIN6cMu/TMlkb99tVMupaCE Tw6mAVtKYhc0Stq+W5ye2Ztdc0AHk72yhh3kZnFQ7/HIOTVcJa5uMIH9ZQwe3b7S307P JtFl9nr3+MWQKk4np+0XEF8rloJg23iO+yo1DlYo60ZZds0YblO7lwvN6OdJLVYb6IP4 bSj0ByyBE1subQqhDuO8XYNTuGyGGjCre5w3TvjkT6eyfYlOvjIf7VTh/3fkdbIqt0R4 46q88kpqSaye6wjO6GbYy0WvHnyg7kYU8SIMx388fIIwFcuoCDzkjJxLfYRnWL4uKkjO SydQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=yK0dG/0vrNxbKSba6n1ipzVAper4VICqvkqQD/UZX0Q=; b=XEijAz8eBNvv/ku//YoyVG8u6Z2jjQtSg5XdzstEprbty/xfnKTW9OLw/C+XlE85ml y7M0iovYHtTdC//9vkJ1XkaoF1fb8bxNiSya98O45bTDxhsJ9k8EAokuJ75gI54NmL2O Wwz8OFc5cY+hXhS0TVpqcDCEe7Vo/C6TGPKvVcIaO+EHi7uQh07bgIU7J7bdsCnvFIdq pm5+BP4FZGYTY5cy5QWEVTC9SGMLVdBZvdHCCRi1m6ba9hgnzc3Uc0P6og6Ni83vLFz8 udWmI1TAkWubhyJN3P1H8M/nqsP6wzWrY1f+u4ePfDy8CZbMZ44s8tno3n1dzMgrV4fn zNWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Zd56Oa3a; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id p194si4045688ywg.204.2018.11.30.13.58.06 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 30 Nov 2018 13:58:06 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Zd56Oa3a; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:34759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSqnV-0005Tb-SY for patch@linaro.org; Fri, 30 Nov 2018 16:58:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSqi6-0007rW-8U for qemu-devel@nongnu.org; Fri, 30 Nov 2018 16:52:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSqi5-0006TI-Gm for qemu-devel@nongnu.org; Fri, 30 Nov 2018 16:52:30 -0500 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:46740) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSqi5-0006Nf-9g for qemu-devel@nongnu.org; Fri, 30 Nov 2018 16:52:29 -0500 Received: by mail-pf1-x444.google.com with SMTP id c73so3415644pfe.13 for ; Fri, 30 Nov 2018 13:52:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yK0dG/0vrNxbKSba6n1ipzVAper4VICqvkqQD/UZX0Q=; b=Zd56Oa3avf/iuZ9p1V7ecewLJ39rsgu3lvWl5i9nUwwkJ9it5rDUgAV6NfyEPb8uwQ Y6KGZP7DHFiTtpEXiGJ78rAZ8G3YFKputE11RyZtB0mKAAiyvXXW0DqDGjcJbelbPcyg 4LODftLVfxHicd8w57QNYh+9jkAeEHP/ezfcE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yK0dG/0vrNxbKSba6n1ipzVAper4VICqvkqQD/UZX0Q=; b=BzD157fU0cCZXrU/u9TWQdPVIuaOdAVfK6Q6b0WgvmCSmRxzyPv29hNDP94tpplco/ tkFZ3Knc9oEVJiRO6E64vGfpPKRPfmznPh5n7Ojy1Iyn3VocLLTvWF4GaFK1D7yh/SnG xo6w7jsiC3K24lXuK1R4eXtm8V9a8Q9qGn9O7112FUxwUe1fhw7/qxlee17vFK0fAhFV 1072OA3X0lHUT+20xK5W6Z9GTdCdTR0ifKx1ymVpzkb0RT5782V+qILpvdnFfKwUoRK2 7JHLtEoB5UgI3CFhLx4FIscoGYTJ7+B8AUuZU8uXZAXXcMbvsYVgieomU2iOSt5Wnn8A EcKQ== X-Gm-Message-State: AA+aEWaWZqgYv+vdal00i2khy7sEE1MOs1xJKAP/qGEiHgONuI8EC3eR PdDMrukrIayu37tE1rfKFvlvSVIEXn0= X-Received: by 2002:a65:6684:: with SMTP id b4mr6210311pgw.55.1543614747222; Fri, 30 Nov 2018 13:52:27 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-170-180.tukw.qwest.net. [97.113.170.180]) by smtp.gmail.com with ESMTPSA id a18sm6973967pgj.30.2018.11.30.13.52.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Nov 2018 13:52:26 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 30 Nov 2018 13:52:08 -0800 Message-Id: <20181130215221.20554-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181130215221.20554-1-richard.henderson@linaro.org> References: <20181130215221.20554-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::444 Subject: [Qemu-devel] [PATCH v3 03/16] tcg/aarch64: Remove reloc_pc26_atomic 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: alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" It is unused since b68686bd4bfeb70040b4099df993dfa0b4f37b03. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.inc.c | 12 ------------ 1 file changed, 12 deletions(-) -- 2.17.2 Reviewed-by: Alex Bennée diff --git a/tcg/aarch64/tcg-target.inc.c b/tcg/aarch64/tcg-target.inc.c index 083592a4d7..a41b633960 100644 --- a/tcg/aarch64/tcg-target.inc.c +++ b/tcg/aarch64/tcg-target.inc.c @@ -87,18 +87,6 @@ static inline void reloc_pc26(tcg_insn_unit *code_ptr, tcg_insn_unit *target) *code_ptr = deposit32(*code_ptr, 0, 26, offset); } -static inline void reloc_pc26_atomic(tcg_insn_unit *code_ptr, - tcg_insn_unit *target) -{ - ptrdiff_t offset = target - code_ptr; - tcg_insn_unit insn; - tcg_debug_assert(offset == sextract64(offset, 0, 26)); - /* read instruction, mask away previous PC_REL26 parameter contents, - set the proper offset, then write back the instruction. */ - insn = atomic_read(code_ptr); - atomic_set(code_ptr, deposit32(insn, 0, 26, offset)); -} - static inline void reloc_pc19(tcg_insn_unit *code_ptr, tcg_insn_unit *target) { ptrdiff_t offset = target - code_ptr;