From patchwork Wed May 3 07:22:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 678715 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp912533wrs; Wed, 3 May 2023 00:35:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6I91ZaGUuAr+srePC1lLTxR3aOPob/kx/YJErcx9SfKFeYvipdXFSyCSx3FyFObgqner+v X-Received: by 2002:ac8:59cd:0:b0:3e6:95f2:8431 with SMTP id f13-20020ac859cd000000b003e695f28431mr31881656qtf.12.1683099334835; Wed, 03 May 2023 00:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683099334; cv=none; d=google.com; s=arc-20160816; b=jNsmZcdYwvsieyRrFFfCw9zYnx1Ett4UZgm+MyPOrwh8D7MnLGy51tC14sFBjO6bu+ 52tPpE5jPcoQleEaCmEKv29mXCw56S5AlSvcr557QKSqitc16c2FGmt1kkF6KLX+3k+C oS4TyUyZ0+Q8v8jBnITSJBAG8utZFJT5WM4rZbrWvXolAdvAXyAg+q28AVM+weXH5Hzx zglby2y3OtJoT8b8AKJpnWyqJwGGwLwh05v8JkliLRd8AjPC+FdAEJfboUDf56NURako FC17YhBFQld7wTFGWEzOJKPibFwWWLL2XnXZpwtrAcwpU+RnZFZll+Z9MHt9T817qOVC Crww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Kb1ot9YMe16Zml8R39ZnIEaXK/c3V3zq72HecaTnr0w=; b=Oyyc5Odbb+i8/pHvLVnqRZnCrqOi5oipKs34U5BNVWItLzi3c+IrDH0Fic9gNUY+tR JPIDPyVDB+B9gvXEwYvgCmRmUlXJ9Go/oTz7L6hYy910TtITMCKunz9wFnNohe2IR+cr /Blup1/Qz8kjveh8D90L0R5tSk9bNLbKSDjefZaRG5LOPWxIlLjiy5EMv8Fsig6ys/yt UKmShUlPLt8AzH0yfq/SGpVBwB9uaoFOTBkkhk+49x4XI0egqhTYdlZPd1KKROUx1gWO JzT2shAr7fO1BLbvqlVDzqakMzeCeqfzJT67jPbp5Z3rgOzOsfnKdidu3Qp7HaSugJpr bQDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CCoGQml1; 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=pass (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 j6-20020a05620a410600b0074abf2e72edsi18580745qko.189.2023.05.03.00.35.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 May 2023 00:35:34 -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=pass header.i=@linaro.org header.s=google header.b=CCoGQml1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pu6qL-0002kL-3j; Wed, 03 May 2023 03:24:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pu6q7-0001r7-Jv for qemu-devel@nongnu.org; Wed, 03 May 2023 03:23:51 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pu6q4-0001h0-GK for qemu-devel@nongnu.org; Wed, 03 May 2023 03:23:51 -0400 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-2f95231618aso2902290f8f.1 for ; Wed, 03 May 2023 00:23:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683098627; x=1685690627; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Kb1ot9YMe16Zml8R39ZnIEaXK/c3V3zq72HecaTnr0w=; b=CCoGQml1Eathb+lR7CDNJUqQhdnO4ij0MwAf8lKq1ikJZ1mGsPt5Kx7pMwlmreJ4nJ Em/464CQKY8TU4aNVmBcEVfZr7fg5J+GJyds6n2TMH5XP2DMQuOp4Y+avV48xe8as/C2 kLeFMa1cL9s8OnpvQqE8KzGdKivnle2NccwZpvSdeGgMtd1d64ySewEYsAsSRPjvqq4Y 5qZA9uumDDdC6Rk8xQcx/uJultQUpRSRid4uwzejifcAt2foxrPqBhjOV6jEmyaE3GVl /I31dBiknhJ49TWE6n9CCRWJ535lyH6eGFqQEWVNzZ3sinqNmZdkfS68cAHH3NULp4cA iVNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683098627; x=1685690627; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Kb1ot9YMe16Zml8R39ZnIEaXK/c3V3zq72HecaTnr0w=; b=k+k5qYO4jnbCE9rfOfHQfIjzix/I/LW91+JhV2G4xG5mspagZwV27Prw+OkLPiFrsY EZm4vSA8Xg/IwCI6SC/TLT1lvJVLbw+VHf65sAPQ+pHxkN4RguXqtqBZBb7luSQdtRJE VxsBswtL8GptwakPY0XcYAaI7MdPbO1UBkWOVjmWxaxt07N1Bkhux5jmpLjQUaPzOCKu Vp2K0m5CQOPKXGK+RKoD80s9kVto5fuAzXreXlgaLw49+5wjYc9ADsaToDhn/jesa9N3 RxA+/ZxrDV+ER3YZFJ3Gfzo2ZOpDtY5UcBDn4mRvYJ6hUnnOVDIRMyNla1716kwiWeaK E0Yw== X-Gm-Message-State: AC+VfDxqK2QWKSCDSOpSAR52WRSnZ/uavN85KESpz3aNoDSlIxtZS0Nf XPvOkz2L7Gg/8lIzIqdutV2D2vls4v2qGCZ8rdhdYw== X-Received: by 2002:a5d:56c6:0:b0:2ee:da1c:381a with SMTP id m6-20020a5d56c6000000b002eeda1c381amr12993079wrw.69.1683098626740; Wed, 03 May 2023 00:23:46 -0700 (PDT) Received: from stoup.Home ([2a02:c7c:74db:8d00:c01d:9d74:b630:9087]) by smtp.gmail.com with ESMTPSA id b14-20020a05600010ce00b0030627f58325sm9586745wrx.25.2023.05.03.00.23.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 00:23:46 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: ale@rev.ng, philmd@linaro.org, marcel.apfelbaum@gmail.com, wangyanan55@huawei.com, anjo@rev.ng Subject: [PATCH 16/84] tcg/i386: Always enable TCG_TARGET_HAS_extr[lh]_i64_i32 Date: Wed, 3 May 2023 08:22:23 +0100 Message-Id: <20230503072331.1747057-17-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230503072331.1747057-1-richard.henderson@linaro.org> References: <20230503072331.1747057-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Keep all 32-bit values zero extended in the register, not solely when addresses are 32 bits. This eliminates a dependency on TARGET_LONG_BITS. Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée --- tcg/i386/tcg-target.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h index 7f69997e30..7ebd6e5135 100644 --- a/tcg/i386/tcg-target.h +++ b/tcg/i386/tcg-target.h @@ -154,9 +154,9 @@ extern bool have_atomic16; #define TCG_TARGET_HAS_mulsh_i32 0 #if TCG_TARGET_REG_BITS == 64 -/* Keep target addresses zero-extended in a register. */ -#define TCG_TARGET_HAS_extrl_i64_i32 (TARGET_LONG_BITS == 32) -#define TCG_TARGET_HAS_extrh_i64_i32 (TARGET_LONG_BITS == 32) +/* Keep 32-bit values zero-extended in a register. */ +#define TCG_TARGET_HAS_extrl_i64_i32 1 +#define TCG_TARGET_HAS_extrh_i64_i32 1 #define TCG_TARGET_HAS_div2_i64 1 #define TCG_TARGET_HAS_rot_i64 1 #define TCG_TARGET_HAS_ext8s_i64 1