From patchwork Fri Nov 23 14:45:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 151879 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2210456ljp; Fri, 23 Nov 2018 06:49:19 -0800 (PST) X-Google-Smtp-Source: AJdET5d2WTAWMXWLDRzW6u5LWsWJ70Zd1bb86olZxGz5/K+7YqVOM16vUthS+h9sFrZYH0O9yyUH X-Received: by 2002:a81:764c:: with SMTP id j12-v6mr17087681ywk.338.1542984559603; Fri, 23 Nov 2018 06:49:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542984559; cv=none; d=google.com; s=arc-20160816; b=JsM+3bbs/0IXWSQTXPY8KcrdsQ1yZRvswOg54VOM00wkM/lwsHPT1b7gz+kyWVHnUC Xewrr29wvx4JJqxjVi00wynXHJYxgfhmyYndSlNI2ulpIhknHEejNCy2KcIy+AnvhVUh ltwOmDn29qW0xFe90LSWC/pYWRFDgPOnrkZzNb9PEPB86r+pzuqZnkWNOTnnyQi5dxVJ qsbiWlIqiBiWr6LEQ1I4UrOvlQijFO6Icpx5FgesROfMnnyv35X3UkJDIv5KifeuZFkD usV7WAuyZLH8M0cTBX+qmgIXV2XAAOzWMTT/M9MrLPDxAItPBMAMLb7Mug7+tMSGJsI0 i0ng== 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=Fux7GoiV8l3FnF1Vyj9P8uU4timqrhfpmRWnGlzFzqM=; b=FFX73Z9O75YF34vfXXkftJNASHmxGxEzMo4BoT9i6zEVvsD+rGmC1MuKjmS1SeSE6S Me209GVsSwPOXiH7yusq7hQfl1L9A+6epYR0ofAUbtS8ODdd3S34I28cJdtoXxd+3iGs +Ezj3fIElLA4dig6TJ5Y+ZcIVloUxDPl8re9uLGoWC+LpLLOwTl8ExuxjcUYW4a3u99o Z5WmeNHMmDsgc2kQeW7JLPAxFTbe28jqPfb3fzTV3RlDqGgwx1t8gB0MMDYdnHH07GB0 dKlHvUA+OhgzK1peiqcGjsoCeaDfPDBVOiAF4VDOMkVuut23QM5P0kIA2wxdMOW821Hj FXlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=CESSUrP+; 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 l7-v6si33996649ybo.167.2018.11.23.06.49.19 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 23 Nov 2018 06:49:19 -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=CESSUrP+; 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]:52764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQClj-0003k7-08 for patch@linaro.org; Fri, 23 Nov 2018 09:49:19 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQCif-0007yS-Qu for qemu-devel@nongnu.org; Fri, 23 Nov 2018 09:46:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQCia-00036F-Pu for qemu-devel@nongnu.org; Fri, 23 Nov 2018 09:46:09 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:39293) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gQCia-00035H-35 for qemu-devel@nongnu.org; Fri, 23 Nov 2018 09:46:04 -0500 Received: by mail-wm1-x344.google.com with SMTP id u13-v6so12247957wmc.4 for ; Fri, 23 Nov 2018 06:46:03 -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=Fux7GoiV8l3FnF1Vyj9P8uU4timqrhfpmRWnGlzFzqM=; b=CESSUrP+KRFaLAPVT6X/RRGzPEY8pFM3Q53qJELQ9eIQkSg2FgI/zpc5c9bH1+VjFa kTxkm5O7Mh8xBOF1sskFOqJf1jJGu1K7exMd8+ptMHrZY1ff6z6OzbbcAtYTMSJmddgc P4WGhwPbr0Hf1LnFA2Hq1jxcgP8jbQ9hb3HMc= 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=Fux7GoiV8l3FnF1Vyj9P8uU4timqrhfpmRWnGlzFzqM=; b=tEaqmWGBG1cKWrKz2C7vTRIksZshfmCx3gHc5LnHAGUmT/YU6lLRRpWYknAi3Mj3IQ afGI6M48S/GEnCGv9qlxfvxcXthTo/g6i8eQBXInToFhGxrak6bVWsufT+gQsViW4ZcM XH3T1XrZnQobSzrMMy910qw/Whtolc0IlIqtv1ifvpThLHbpZcJzWaePIbRUT6NMBuM1 eJzFHDZFqt9YM6S5BC7GXdO4b8xyb34nJenRuvbfxFW10cbB7md3RytRyKT36v6hblw+ meljtUPVwXLILE1iwG6r5q+Giri9w/Jnve5I+Amigk3pvNUS5w2NVLiDtKRmra40ML+E XmlQ== X-Gm-Message-State: AGRZ1gIP92F9pOtUmcfEzbcbUYJMIq3DqUmtzMllIRvx5mHSbbOQ0/Nv /gsTlm0MJ4h/jAfvaBnZmUgKFVHb4heaiw== X-Received: by 2002:a1c:af89:: with SMTP id y131mr13884953wme.137.1542984361904; Fri, 23 Nov 2018 06:46:01 -0800 (PST) Received: from cloudburst.twiddle.net ([195.77.246.50]) by smtp.gmail.com with ESMTPSA id p74sm10339630wmd.29.2018.11.23.06.46.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Nov 2018 06:46:01 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 23 Nov 2018 15:45:22 +0100 Message-Id: <20181123144558.5048-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181123144558.5048-1-richard.henderson@linaro.org> References: <20181123144558.5048-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::344 Subject: [Qemu-devel] [PATCH for-4.0 v2 01/37] tcg/i386: Always use %ebp for TCG_AREG0 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: Alistair.Francis@wdc.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" For x86_64, this can result in smaller code when manipulating TCG_TYPE_I32, as we can omit a REX prefix. Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) -- 2.17.2 Reviewed-by: Alex Bennée diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h index 9fdf37f23c..7488c3d869 100644 --- a/tcg/i386/tcg-target.h +++ b/tcg/i386/tcg-target.h @@ -84,6 +84,8 @@ typedef enum { TCG_REG_RBP = TCG_REG_EBP, TCG_REG_RSI = TCG_REG_ESI, TCG_REG_RDI = TCG_REG_EDI, + + TCG_AREG0 = TCG_REG_EBP, } TCGReg; /* used for function call generation */ @@ -194,12 +196,6 @@ extern bool have_avx2; #define TCG_TARGET_extract_i64_valid(ofs, len) \ (((ofs) == 8 && (len) == 8) || ((ofs) + (len)) == 32) -#if TCG_TARGET_REG_BITS == 64 -# define TCG_AREG0 TCG_REG_R14 -#else -# define TCG_AREG0 TCG_REG_EBP -#endif - static inline void flush_icache_range(uintptr_t start, uintptr_t stop) { }