From patchwork Tue Jul 9 16:36:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 168749 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp8785988ilk; Tue, 9 Jul 2019 09:38:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVX8McgA2bnap3i8RA3BySEi5frcWni5wI0Pjk0Si5St6HXoQ1aTGbPbvM8ef9RqlVhF0I X-Received: by 2002:a50:f5fc:: with SMTP id x57mr26774017edm.105.1562690291147; Tue, 09 Jul 2019 09:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562690291; cv=none; d=google.com; s=arc-20160816; b=BAs1x0cNJMQ5a4JQytHYbckEnV8TVCkr5GwLqVn6rx5dJQsx/XZoeiFwDW/OobIaJt NJt+UtKyZDyNVDlTYeJHTFrADpXSsXCP2qO/hFCVXyOd+C8pJgtZgL/t8oeKYbFXVMjc jm0wOd/5OIjyrqVPv3Al+uhKB+/Oxk7UpqrnQPE6X99KOvqEh2Uo9BbKgxccj0OEj55/ my3qKrZLOy/a0ZRYLf42KyKwAdYV1+BGwpEGp5QjYVHKja7pZwwidwcCKjJn5hWRGMfx GEqNH4GLuZEt4ywLHcEg51UGicjZce9/4Y8JKfIJXtX+TBcJAhAPPwIKSCRUnSG0X49/ LD3w== 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=+/eu9Ji8fYpnUOznN+zYDis1fLw1ZhoxMJAE0l0+5Bg=; b=kHLZv/gRAjtjIHGU5TMmzOmyse8B28AukRttLg6Qzz11b9fl0rEwZkTYq0ZWYPeo5Y VoL7+8wbVJGzDAGBswwYgGPs52rZSy/fxIfqumCidmXIpbpNelHMZkFLo54ssix/7Jre ILfh5VuVlkBsYcoRlpve5Jyc340wke9wkNbUEZUR/kQO6wTRUYM2h9o8y+N3v+wm1WvX DBAbv9q/zThIQuXixZnkkdhs6CtiKK3k6MY8iP98PdA1/mIDoDZXnOJYNzxBRhg1dWrx CpdxL0I0UXGkgV9d7ze6Qo/yRyPgLqu5ZQhWeWP+sIpXcvJ1/2IQ/O0G1uwS9Xk7mnno e05g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=jh98iGdh; 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 s35si8723834edb.337.2019.07.09.09.38.10 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Jul 2019 09:38: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=jh98iGdh; 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]:51916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkt86-0003Ct-3f for patch@linaro.org; Tue, 09 Jul 2019 12:38:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38027) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkt7N-0003Ag-CT for qemu-devel@nongnu.org; Tue, 09 Jul 2019 12:37:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkt7M-0006cx-4J for qemu-devel@nongnu.org; Tue, 09 Jul 2019 12:37:25 -0400 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]:33658) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkt7L-0006bd-OX for qemu-devel@nongnu.org; Tue, 09 Jul 2019 12:37:24 -0400 Received: by mail-pl1-x641.google.com with SMTP id c14so10356594plo.0 for ; Tue, 09 Jul 2019 09:37:23 -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 :mime-version:content-transfer-encoding; bh=+/eu9Ji8fYpnUOznN+zYDis1fLw1ZhoxMJAE0l0+5Bg=; b=jh98iGdhaXofjN6j69x+9KeAwyGF7XZbss/H8xiLI0YeVZ/9CBYdHwDbszuwIq3wtm T4NQvsOnWEdn7yUdf2I0H4stFL4Kz9HyxtCMf6R7K6dTN2H5uLevjQYUIK8TrhLj/QVR +wxCfWVSj9etLTy7VIfGzkgK8Hy7M71N5G8O1VbxJy9knedQKNLVeptMoefQ9G6Iwyj3 fD4UuSj6w4elGbhYaKMvQsnbwc705+uQTJVC5Ja4WCbA+qa13KnGR0BGaTtaAe5kammP G6Hm2G2WFgWFu8E4i9RGZxYb7JNyjUAvxLq+TD6xPzIIp39xjFfCMVv8jHqfd37vRPXH a7GQ== 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:mime-version:content-transfer-encoding; bh=+/eu9Ji8fYpnUOznN+zYDis1fLw1ZhoxMJAE0l0+5Bg=; b=hwKRN6+UFK1DQg6gdbM6hTqn/Ihmv8UzFDva2uHXPUH0WQsaDTn4r0417k/ZxjjHwm wgxduFEv+CjZtiR7uY8iemUIJV99hicSgo5r7LRMh6ySLBHYSRgkhDHRjTx95MtrjOuW eYG4oxW6MzZaDY2rtcIUEccLqMH7uKkyAHoI+b0p/Xm4B8Y4QJ30P8uh0cSg0pg0KxBc IYfSCDJUr7YmOUAH4q6eFCcMar38Fla+9dJuyvFJB52Ib8+43UClKVDCIWGOLoDB0BML JaHF+VKCfO8AjCRzggD2ZRBdvS+Gac548KUeAYdBnWRfQDRueVyOTr2DcebtB195p6Jt 3Lew== X-Gm-Message-State: APjAAAVbeyGeiTDbTPy/nxaSOQIQ7cIxtkox6OJIzq3xAFD2TWZPRYOY a9PtklOlWYRKzBFkj3UHwOlhrSg+1IA= X-Received: by 2002:a17:902:9688:: with SMTP id n8mr32595831plp.227.1562690242075; Tue, 09 Jul 2019 09:37:22 -0700 (PDT) Received: from localhost.localdomain ([172.56.12.212]) by smtp.gmail.com with ESMTPSA id v8sm19225231pgs.82.2019.07.09.09.37.18 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 09:37:21 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 9 Jul 2019 18:36:54 +0200 Message-Id: <20190709163656.3100-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190709163656.3100-1-richard.henderson@linaro.org> References: <20190709163656.3100-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::641 Subject: [Qemu-devel] [PATCH v2 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. Reviewed-by: Alex Bennée 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