From patchwork Fri Nov 30 21:52:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 152591 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4166873ljp; Fri, 30 Nov 2018 13:52:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/UK3msXVrge8VwGBfoCbsDczvdS++1aBmW1SV773QRaVYV0B/KM359PCvt8q+RNEpof8FV6 X-Received: by 2002:a81:6189:: with SMTP id v131mr7464083ywb.37.1543614773367; Fri, 30 Nov 2018 13:52:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543614773; cv=none; d=google.com; s=arc-20160816; b=ZSDOc6s9lgVm0Ga6e0gL3xeLpqxtVLsWeX2g1pPcxX6DodfeglB1zmU1uuiEye/BWX JinL31skExgyH4zJPjsh6HrqaxQdmrAVsgkIu+/gq0lwzxr1FLgRFfh6zRdmi+gGcQtE isAveRJipCUbOqs4l3srlIf+9faGfEra5WeYK3UWmwuQSSDQS05+UB0e9nT5NhCSCEuO hBztCVJ+u7WttZm22miUV1FGDrcN7dO3iKDgiCfGFrdqrLpDtOTim/kSIpYS3/91n49X 2kcrfmM+9TFvk82T8UUqHEBvQFm7+T26OCYUovvh5S4mEbA4bDJd/yBLFFTpVvA5JjHg bwYQ== 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=NhEZSAJG05xqXtLacoC2PBUagTVyKddaBYmrH62y/sY=; b=XjZ0Ukx4bntY9eVVt9c1qTUaLyljjrsWjRbOcWsdOv8vbmFqv7iUPCcj9KPyKtRqL2 854Rdo/mdIbiXBxv+du3oDsAYwwMKIGIx2xLdIKv7cXKn2sJfeBFZq5kBf/tioyFtXoc v7TKv90sjbKg7/vuWw+ov84rBedY/N4QJKxIglRpNeO7CaWZnxb5O53D/td+jSwzea46 xwurX1eJEzTvpF8wiLm/tKUvzwhOqVhBEp+tqeYBU3/O+cy2HjCK7tiZOSFIjURO75lO ObYdVgwK7ocb6Ty6SLtzIzBH5238c9krIKb7GmkjaHJE7pCx8lQwoKVs5Wn8pPEZZ3pl 4zhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SGDdVJDC; 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 r123si1324980ywh.99.2018.11.30.13.52.53 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 30 Nov 2018 13:52:53 -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=SGDdVJDC; 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]:34732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSqiS-0007rv-MD for patch@linaro.org; Fri, 30 Nov 2018 16:52:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSqi4-0007qG-6n for qemu-devel@nongnu.org; Fri, 30 Nov 2018 16:52:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSqi2-0006Ea-9H for qemu-devel@nongnu.org; Fri, 30 Nov 2018 16:52:28 -0500 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:43975) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSqi2-00069c-2G for qemu-devel@nongnu.org; Fri, 30 Nov 2018 16:52:26 -0500 Received: by mail-pg1-x543.google.com with SMTP id v28so3044248pgk.10 for ; Fri, 30 Nov 2018 13:52:25 -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 :mime-version:content-transfer-encoding; bh=NhEZSAJG05xqXtLacoC2PBUagTVyKddaBYmrH62y/sY=; b=SGDdVJDCpEKl5iDotnv/YA7RJ5xDbz69Uc9GS4WL6YlXLZNngPZXKF189/p2UfY16M eUpbTIFImgsat1fDUv6ye207Dxam0XZOejlGa9TWLuqb6LUpc++JQauL6APTCis/Pq1R E5x+AEr4Z1ZWzFuVY1AJJdouPBXVimcsTqaG4= 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=NhEZSAJG05xqXtLacoC2PBUagTVyKddaBYmrH62y/sY=; b=j0CpFpIG4cEmzR4wHUnpEUcxufp/zjqxwzr7IYfyfTUlK46oCqTMFxtpA2VHAJp/cX WvhdqI8h0vg0Xijf9gucOYP9P7Ewvq8aL1WMWkfg5yKnA62wf1iKwsgsuf4ih1YNfRPO qvHF79sx2C8SuyqeukykMF8444E5i061qffBpmKxzvMVrhYKFa7GsOv1pgZ6v9pyoqEC d2gaMAns5DTq1hNc4HZ3P9H+2iz9vJkqWnT5H3M7mEGGlyOzONvD79QDQ/jZwqD1ErJa vB1LUQLpD52gU4vhW9ry/OLu+/u/RKgHR09KOpqVxu2ETqnRogE4qhUkD1sjY+l0tUi7 9Cpw== X-Gm-Message-State: AA+aEWYN8+wu66icZQC+YpF3qmTrz6v8OZgGd+K2PE6nZ0DCo/7tb3T1 il+f0AMGtyIge7NXErTxIODrqScsfxg= X-Received: by 2002:a63:a552:: with SMTP id r18mr6210983pgu.176.1543614744459; Fri, 30 Nov 2018 13:52:24 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-170-180.tukw.qwest.net. [97.113.170.180]) by smtp.gmail.com with ESMTPSA id a18sm6973967pgj.30.2018.11.30.13.52.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Nov 2018 13:52:23 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 30 Nov 2018 13:52:06 -0800 Message-Id: <20181130215221.20554-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181130215221.20554-1-richard.henderson@linaro.org> References: <20181130215221.20554-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::543 Subject: [Qemu-devel] [PATCH v3 01/16] 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: alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" For x86_64, this can remove a REX prefix resulting in smaller code when manipulating globals of type i32, as we move them between backing store via cpu_env, aka TCG_AREG0. Reviewed-by: Alex Bennée Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) -- 2.17.2 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) { }