From nobody Tue Feb 10 04:08:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1543614871463533.8505158430576; Fri, 30 Nov 2018 13:54:31 -0800 (PST) Received: from localhost ([::1]:34737 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSqk2-000234-Dx for importer@patchew.org; Fri, 30 Nov 2018 16:54:30 -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) 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) 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-Google-Smtp-Source: AFSGD/XcCp8B91j2cpTnwWE2iFLldpPzU3BpMa/ir+uYGDvKMx+pkPlmTw2jyGsxTAoSQTGjsoqhPQ== X-Received: by 2002:a63:a552:: with SMTP id r18mr6210983pgu.176.1543614744459; Fri, 30 Nov 2018 13:52:24 -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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) 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=C3=A9e Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 =3D TCG_REG_EBP, TCG_REG_RSI =3D TCG_REG_ESI, TCG_REG_RDI =3D TCG_REG_EDI, + + TCG_AREG0 =3D TCG_REG_EBP, } TCGReg; =20 /* used for function call generation */ @@ -194,12 +196,6 @@ extern bool have_avx2; #define TCG_TARGET_extract_i64_valid(ofs, len) \ (((ofs) =3D=3D 8 && (len) =3D=3D 8) || ((ofs) + (len)) =3D=3D 32) =20 -#if TCG_TARGET_REG_BITS =3D=3D 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) { } --=20 2.17.2