From patchwork Sun Jul 14 11:12: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: 168967 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3117559ilk; Sun, 14 Jul 2019 04:13:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/5wWl4YWeEXYOydd3CN6QyMgBaoXiB9NIRjPzi1VnozL42i6Gj9OgTKcWH93Fmf3d+qN/ X-Received: by 2002:a17:906:7d12:: with SMTP id u18mr15570228ejo.24.1563102802868; Sun, 14 Jul 2019 04:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563102802; cv=none; d=google.com; s=arc-20160816; b=iKH8rCg81Mi8aLrxX8URvdXs4nIbjoMyu7RVdDnHSNvhvHfzL05moxti0KRGVuQqQI igmmZuMQSfbViqHlOBkH6uYaE0BwTbDvdU3SW3fLdT+rwWGRQ3cIM6ZQTPCxXEIeYrYi SzqE0Drk67IHafbUAnNHg7IjsrkL/Z++wgZaTSAycHKf1JNoA6ZOj6EfVU4CaAPzrqm4 NcriA9PFxmr7TVkHMhpAWXDDhzc0sFKbiOi8Qo/TYG7hFPv7JcDejp5gH8bNW1b8olvl TGhMfcsFlRpqrYNioOdbxnaCijODO2oQ6PP58agT/WJ9rTjDTZP8Z2iPGvm9Maz4wFAI l7Ag== 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=qelgqo5GvfYFupuqtvMiw9FLVaC0w4r/YnnDudnt7WZC0ngIeI0oONVYzXddxutjUv EcTLiofZPJPsOyTxdPkMSUYJMJQtHs2xC+BYx8BU+FXc78i728B/xkUPp1cSuSXhufBh y/ih5l7Tex1jex9aBt6/iDAmU2ALcD2U3tq+7pDWtlsfnPkT+qbtZ1hr6TmiUz25B63W 40cvJ8f1Uwqi6oHc65YxXLiSRgqnOhGsXd1OGFmOVH/5lsYIKsdnosGDqPhykvxWrXjj VIw8vG45247NmmukUfufCx11b28rondgz4jBRoRnwAQ6MFq7XyxnC4LMY12Xp1whzunB ELGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=UzJe8QRz; 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 gg12si7460803ejb.225.2019.07.14.04.13.22 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Jul 2019 04:13:22 -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=UzJe8QRz; 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]:59734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmcRV-0005wu-3N for patch@linaro.org; Sun, 14 Jul 2019 07:13:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60356) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmcR8-0005i1-TS for qemu-devel@nongnu.org; Sun, 14 Jul 2019 07:12:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmcR7-0006O7-Ta for qemu-devel@nongnu.org; Sun, 14 Jul 2019 07:12:58 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:44268) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hmcR7-0006Nb-Ng for qemu-devel@nongnu.org; Sun, 14 Jul 2019 07:12:57 -0400 Received: by mail-wr1-x444.google.com with SMTP id p17so14119413wrf.11 for ; Sun, 14 Jul 2019 04:12:57 -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=UzJe8QRzH+KGTW0P/KITp2+31soeoocQ45TSMRRDS0RgGkcdAsLjIm3aeznlBWzy0Y V6UrX59zeP+4BbAWmUIaJLJkGLeMrC+fmwr41Kq0BrqsZfg/rC8o8BTASHl1m76db6DO 3xp7ftmIoiZTjG5fkYtvsIhzzkUf1G3ekL8TV7v3s0Ht/awxhdPEnRxa8adW5HPTkkse GVwoxb/VcrbcJlcHVOHH7Dzk4acLKyjduKVfaoPYkBN1ubt/VdvwIgiBAW2llQV6gDW4 1vCVU5yQEAdr4guejcJS8kvB3OdF3B2N87RbbbYjtVC+xgZrq/U7oKcutKeLlHpxdTJi h16A== 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=mmrGCzxDMgdjH6H6dGbHD5MiGYcwoXveGbAqxxml6wAzQxmFf5+nB+C/o+yrSOJyzJ 405JgV3yaAGKEJNAC9q69YMKBpC8Gr68FwAWwvFTFZ+meoxfK4z+d6cDVFZVqEC7m68z bd/eu1DbyrZ1apKxn9BXJegJxOSC/wLFSV/jzvxdqsnh+78wvjwBEdh0yyrxFxcKgvrT 3eaS2d06XlTjZ5yy4xm/WQCgNfplZh1imUQ9qEaPUsK1NzBjcTOdtrFpKk9M6sy9Mb42 loAkZq6YeUyAXlH+vPzQfFWwXTVcuc9K1AMLGVn46ljuAU3O2fj0ZjZ/rX4hNcxClhfn FdFw== X-Gm-Message-State: APjAAAVvLtijJr2MqEWcL1SFd7ZMZec6tA3YB2xHFAKWFDHeX5rs8eON VPg+oFXm9xY8Y/3qlUTICHgaPZKazai8Sw== X-Received: by 2002:adf:f088:: with SMTP id n8mr22737575wro.58.1563102776408; Sun, 14 Jul 2019 04:12:56 -0700 (PDT) Received: from localhost.localdomain ([194.144.248.241]) by smtp.gmail.com with ESMTPSA id f17sm12675795wmf.27.2019.07.14.04.12.55 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 14 Jul 2019 04:12:55 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sun, 14 Jul 2019 11:12:47 +0000 Message-Id: <20190714111249.13859-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190714111249.13859-1-richard.henderson@linaro.org> References: <20190714111249.13859-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: 2a00:1450:4864:20::444 Subject: [Qemu-devel] [PULL for-4.1 5/7] 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: peter.maydell@linaro.org 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