From patchwork Tue Jul 9 09:20:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 168733 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp8297149ilk; Tue, 9 Jul 2019 02:25:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/ktcJzSElWntbvaqYz7NVsri9ui2obRAMA7Eff2cid+rKGrsqT0bgPieOzzHkFUK8AJe2 X-Received: by 2002:a50:91ef:: with SMTP id h44mr24637684eda.276.1562664311527; Tue, 09 Jul 2019 02:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562664311; cv=none; d=google.com; s=arc-20160816; b=jT1TFiz8bOE6R/9TkKBHA8nlu/ggaBOrHTKNVCbD7im2qsfPaNmyLJcGbbVYKise4m mtJ3bukDlJjfmxqkMs8wbaAzQ9N7yGGb388W3aQ6QRL9zDsW17hPETa/LAKP/gXOGLxV B++Jn8iYBY45VoLbTYhQNN4YVYq4lBqKO+OX+W+UrTRTIdA8VwnHBz1qk4qVgAT2LxgY WOsgJQVaaKSwzaQPLOdLHzIgN26jOeOQTydtqmlejGd5l/DWy9CF4yAaDQ/FfDw9Vvok NMd8dI4r4wAgW7qRP3lzWC674D25l+vg4WhYCGlzu2WLwBn42oGdmrNyS5yB3HH9zQ1K qPtA== 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=GlX1ghA7K5MFvwvh9tPMB+W8XhZilfwCsvalOImEzfU=; b=A/xAfMO6j7SUs6wFeJ/d/hi3ax/wSvnTCK2XCWU0EQfkta9/745PT1scO6V4uiiJ3y UGoSENK9arOrgYsx4bg1T2eMQsZfx8j283P44sOvW8OipB3Y21RhoR45fHo6tHJHibyC HSLpzCWp3yD3DaHHSYIFPEmPuTLYiOJ8JfiTxQEU824PNCDlGPolV0J9w5MyItYOkMxt dl01O5JNddUlqLXUUawARLqD+Hnfgl51QFI59EHdaNPsxvqkdsH3EM7Y0TrdfcTAk4re P2dQ5ymSpfr3T/cWUlajyWUlohpBo0a7AWU7BGhS3YtZbwdXQAqRt3bcoazTxTCXNve/ vYSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Hcw2+UwB; 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 w27si15854418edc.327.2019.07.09.02.25.11 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Jul 2019 02:25:11 -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=Hcw2+UwB; 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]:48092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkmN4-0003ho-CQ for patch@linaro.org; Tue, 09 Jul 2019 05:25:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43453) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkmJQ-00070F-Vq for qemu-devel@nongnu.org; Tue, 09 Jul 2019 05:21:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkmJP-0001xU-3d for qemu-devel@nongnu.org; Tue, 09 Jul 2019 05:21:24 -0400 Received: from mail-io1-xd41.google.com ([2607:f8b0:4864:20::d41]:37378) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkmJO-0001tL-M3 for qemu-devel@nongnu.org; Tue, 09 Jul 2019 05:21:23 -0400 Received: by mail-io1-xd41.google.com with SMTP id q22so19834992iog.4 for ; Tue, 09 Jul 2019 02:21:17 -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:in-reply-to:references; bh=GlX1ghA7K5MFvwvh9tPMB+W8XhZilfwCsvalOImEzfU=; b=Hcw2+UwBgkll2NGyXaZofgHSi0VosxBMRToLyCRg31MJyEYgk41VvS+vvK6NqS1Pmy D3PpF4E7FeHa1gNEm6Fx+KohEpzuO9ef3V5Uf8O7dU9ACuV0ezdcW9LZqSTl8j3nfEJR mPfa56HWHf2jrKwIi+yZ2CyXR9vyXrQbRiGqkB4mAXb0VWNEPMUAF4qTkavJxJBBmqLK 2hcRdPxbCgpjdZXcda/sIKjf+/5HezhBVzKyxKDlPEzBuHwxFWvFpps1uc9PXXmTn8ng c74hnb9ASHXQXj4vKrMFCkPodim2UajeIPSuzZgQGtQChxBglFOy9A3vYVxoTYE3uL3T 197g== 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=GlX1ghA7K5MFvwvh9tPMB+W8XhZilfwCsvalOImEzfU=; b=RUsRoLOVg12Gb/SXrYNyJADlYfoOtrR95Dhb9NYJSqNYE25KbRNsRLhu14wOAQnn3q Jqq+D1scJn+g2hHxwJud9AMAugYR62ep/idRN7J3/KsdRhgfIuOFg6qxWqdccuR7n7ey zW/nKNrTXnRUZs5+Wg3D4wgWxKA+CKqRw/Svkvx0EjwmEi81HEHZyLopoJlCnpZaZexd bRWtJVRrnhQNYrDUvE0AHugr1OhHY70MPinei/6PxfzeSFFlkNZ28Z5EpwHKC8Rn2S2K IWpVG62GzskEDqZu6Qv4IOUdZjypG/k2oNsDnVcfZtiqZ9XviNH1/7bAKgsuyLNxH+y9 Xu1Q== X-Gm-Message-State: APjAAAUcTTn5QLmv+MtrUyCPNBrK9k8fcEIp9Cd1+uz/TI0Rd75hQ85H //lYoaxsWfqelfQfyfc70L6ghMatdP0= X-Received: by 2002:a02:c492:: with SMTP id t18mr27107880jam.67.1562664076190; Tue, 09 Jul 2019 02:21:16 -0700 (PDT) Received: from localhost.localdomain ([172.56.12.212]) by smtp.gmail.com with ESMTPSA id c17sm17613817ioo.82.2019.07.09.02.21.11 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 02:21:15 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 9 Jul 2019 11:20:47 +0200 Message-Id: <20190709092049.13771-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190709092049.13771-1-richard.henderson@linaro.org> References: <20190709092049.13771-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::d41 Subject: [Qemu-devel] [PATCH 3/5] 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: , Cc: lvivier@redhat.com, peter.maydell@linaro.org, alex.bennee@linaro.org, pbonzini@redhat.com 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 Reviewed-by: Alex Bennée 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