From patchwork Sun Jun 16 21:09:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 166964 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2066569ilk; Sun, 16 Jun 2019 14:10:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5YNOYdwdY5p666BppOuybTeoovmQ7kbcRe4fZaGlkTLJkvyIzloQDw5oDAadhaTCpcPmG X-Received: by 2002:a0c:8a43:: with SMTP id 3mr18725023qvu.138.1560719428907; Sun, 16 Jun 2019 14:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560719428; cv=none; d=google.com; s=arc-20160816; b=ShNk4xbgGfEunY1nfDzT/c8b0HQDg81lYwTz/miRJILQ/bbV/iUiWMFC5GU8PfRi1i nBJ2UC81jpDPobEc8/nkozT0qW6Wx8PWwVjMbWN3fOteGV2bdXL4O/XzcAIsKxSm6GtY T4krA6DwNNOwuvZyjbR2eDhNpgFkO9sJJHxj/UrH2cqnEYqexTVv2myO5WjuUfclSn5e p97odjsVPhlqqaydx8WkiYilZbU9peMdpu6s0cbd8uO3D/NPYJfLdDyUGCglaEE72k5e 9FBqMVfgbptQLBzAzGD+9/J5+L95dbekyw4JVxqTTvomnF9KHf77Y+K/hrezwyBBDqYp 4P/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=GlX1ghA7K5MFvwvh9tPMB+W8XhZilfwCsvalOImEzfU=; b=CYn4ha2wj2K1aulPRmaHW2Cgxs7qO48+LhNBCvEKsIW26236Do6hhStnB+bEQ2mMgO Kc6mmMcjMJ3V9E/B7LmzrXA9Xl1xQ1nOcCTFb7LUdwDgeRrck6IpSVRHB7EoZj7/tYyT kuB2gMMFe+rZ0lG5AfPpmz4mlIHJ6LD9zts1TK2TOvFkcuPGWHuMjkLsUv98eslNn5Zo F370X4Wq1BizxfL2zz1e8b+18K5G+vTxqHDVzcGoNxvzxnzZfm6hKiLn73Rl2SkP10yW xUpG3srZAuWiaiWovj6xZAw2m/fH79r4a480TkhVMXWtTfWY8odjqyxTfy6p0pCW8m72 YlLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="ky/B2GUF"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id n19si6624559qtn.342.2019.06.16.14.10.28 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 Jun 2019 14:10:28 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="ky/B2GUF"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:42874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hccQ0-0001HB-Ig for patch@linaro.org; Sun, 16 Jun 2019 17:10:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34908) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hccOf-0008Ux-N5 for qemu-devel@nongnu.org; Sun, 16 Jun 2019 17:09:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hccOe-0003lI-Mh for qemu-devel@nongnu.org; Sun, 16 Jun 2019 17:09:05 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:46672) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hccOe-0003kn-Et for qemu-devel@nongnu.org; Sun, 16 Jun 2019 17:09:04 -0400 Received: by mail-pf1-x442.google.com with SMTP id 81so4482501pfy.13 for ; Sun, 16 Jun 2019 14:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=GlX1ghA7K5MFvwvh9tPMB+W8XhZilfwCsvalOImEzfU=; b=ky/B2GUF4GDrPl1jrYJvQsj70VpxNq1w6bFADjDNE2Yj9V9LUsh7aJaaRWlqvlJE82 T+q+SziYY6QARNH2UNxLc3y69DqMQe/pVSAzDMi5tzrI8/g+0Cu0JlNsWiyhhXS4e0oY SmgWIj97YQvy83IZpINJIcEyLxyQhYkmc88eaPuI90YXlu1iof4LywWtigI5bnE1/eLq Y2alGliZSaj2jmx228Xt8ocxIdYJlntT9rHPMjJI6pT8QUGpFcOd7FF2dIG2mMXiFyUp ag9Bl0x03CGs30aGqJBmDA+CtxJUMqNrJRSLgCq2Ifo2RALKhYwko3/JWKoymifvbE8z Citw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=GlX1ghA7K5MFvwvh9tPMB+W8XhZilfwCsvalOImEzfU=; b=F+/v4Yw/nU/0LgMoZxCrpuhODIloAuxKAs9r5kJ4820QI7RDT5ElRj4E3CXa8Wganm htz4Jex1alYpbLyDClBQfixsAGIU2YXXFZU5ZqxAMQZLbKy8NDXamfS/0olpqcSMBLsk 3wwotKViDptCucf8enhyLN2pNlJUyLgDXjiME1/r8miiRfSHfrPVvVi6cQ+c+v8NFob+ V9fxVhC7B/0WNhLfdP5BJkQVDfgdZtQi13uIXSS8IjRyRissiIc867lOi2myIlALcMWl lWHUlemmgelhOVf4oMGTgMlWGLcP3+zN4sXTxGWwZgaKbXYnb/SxWRMXXBCpwNjnI9zM PqOw== X-Gm-Message-State: APjAAAWqOYwImzOCwOgfruuKfH5+sMKTyQW+SjRNedc5nujG7UbR4n6T Z0jTZf8c7z00tb6I06GOW5MIbgHMgfY= X-Received: by 2002:a17:90a:25e6:: with SMTP id k93mr23101891pje.100.1560719343105; Sun, 16 Jun 2019 14:09:03 -0700 (PDT) Received: from localhost.localdomain (97-113-13-231.tukw.qwest.net. [97.113.13.231]) by smtp.gmail.com with ESMTPSA id i3sm9620320pfo.138.2019.06.16.14.09.02 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 16 Jun 2019 14:09:02 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sun, 16 Jun 2019 14:09:00 -0700 Message-Id: <20190616210900.17814-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190616210900.17814-1-richard.henderson@linaro.org> References: <20190616210900.17814-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::442 Subject: [Qemu-devel] [PATCH 2/2] tcg: Remove cpu_ld*_code_ra X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These functions are not used, and are not usable in the context of code generation, because we never have a helper return address to pass in to them. Signed-off-by: Richard Henderson --- include/exec/cpu_ldst_useronly_template.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/include/exec/cpu_ldst_useronly_template.h b/include/exec/cpu_ldst_useronly_template.h index e65733f7e2..8c7a2c6cd7 100644 --- a/include/exec/cpu_ldst_useronly_template.h +++ b/include/exec/cpu_ldst_useronly_template.h @@ -72,6 +72,7 @@ glue(glue(cpu_ld, USUFFIX), MEMSUFFIX)(CPUArchState *env, abi_ptr ptr) return glue(glue(ld, USUFFIX), _p)(g2h(ptr)); } +#ifndef CODE_ACCESS static inline RES_TYPE glue(glue(glue(cpu_ld, USUFFIX), MEMSUFFIX), _ra)(CPUArchState *env, abi_ptr ptr, @@ -83,6 +84,7 @@ glue(glue(glue(cpu_ld, USUFFIX), MEMSUFFIX), _ra)(CPUArchState *env, clear_helper_retaddr(); return ret; } +#endif #if DATA_SIZE <= 2 static inline int @@ -96,6 +98,7 @@ glue(glue(cpu_lds, SUFFIX), MEMSUFFIX)(CPUArchState *env, abi_ptr ptr) return glue(glue(lds, SUFFIX), _p)(g2h(ptr)); } +#ifndef CODE_ACCESS static inline int glue(glue(glue(cpu_lds, SUFFIX), MEMSUFFIX), _ra)(CPUArchState *env, abi_ptr ptr, @@ -107,7 +110,8 @@ glue(glue(glue(cpu_lds, SUFFIX), MEMSUFFIX), _ra)(CPUArchState *env, clear_helper_retaddr(); return ret; } -#endif +#endif /* CODE_ACCESS */ +#endif /* DATA_SIZE <= 2 */ #ifndef CODE_ACCESS static inline void